Feat: switch team; team model
This commit is contained in:
@ -1,19 +1,26 @@
|
||||
{{define "room"}}
|
||||
<div id="hello-user">
|
||||
<p>Hello {{.State.Username}}</p>
|
||||
<p>Hello {{.State.Username}};</p>
|
||||
<p>
|
||||
{{if eq .State.Team ""}}
|
||||
join the team!
|
||||
{{else}}
|
||||
you're on the team {{.State.Team}}!
|
||||
{{end}}
|
||||
</p>
|
||||
</div>
|
||||
<hr />
|
||||
<div class="flex justify-center">
|
||||
<!-- Left Panel -->
|
||||
{{template "teamlist" .Room.BlueGuessers}}
|
||||
{{if eq .State.Team ""}}
|
||||
{{template "teamlist" .Room.BlueTeam}}
|
||||
{{if ne .State.Team "blue"}}
|
||||
{{template "teampew" "blue"}}
|
||||
{{end}}
|
||||
<!-- Right Panel -->
|
||||
{{if eq .State.Team ""}}
|
||||
{{if ne .State.Team "red"}}
|
||||
{{template "teampew" "red"}}
|
||||
{{end}}
|
||||
{{template "teamlist" .Room.RedGuessers}}
|
||||
{{template "teamlist" .Room.RedTeam}}
|
||||
</div>
|
||||
<hr />
|
||||
<div id="cardtable">
|
||||
|
Reference in New Issue
Block a user