diff --git a/components/addbotbtn.html b/components/addbotbtn.html index a98e456..edbfdc5 100644 --- a/components/addbotbtn.html +++ b/components/addbotbtn.html @@ -3,29 +3,29 @@
{{$botName = .Room.FindBotByTeamRole "blue" "mime"}} {{ if eq .Room.BlueTeam.Mime "" }} - + {{ else if ne $botName "" }} - + {{ end }} {{$botName = .Room.FindBotByTeamRole "red" "mime"}} {{ if eq .Room.RedTeam.Mime "" }} - + {{ else if ne $botName "" }} - + {{ end }}
{{$botName = .Room.FindBotByTeamRole "blue" "guesser"}}
{{ if not .Room.BlueTeam.Guessers }} - + {{ else if ne $botName "" }} - + {{ end }} {{$botName = .Room.FindBotByTeamRole "red" "guesser"}} {{ if not .Room.RedTeam.Guessers }} - + {{ else if ne $botName "" }} - + {{ end }}
{{end}} diff --git a/components/playerlist.html b/components/playerlist.html index 3a4684d..5e19420 100644 --- a/components/playerlist.html +++ b/components/playerlist.html @@ -1,13 +1,14 @@ {{define "teamlist"}} -
-

Guessers

-{{range .Guessers}} -

{{.}}

-{{end}} -
-
-
-

Mime

-

{{.Mime}}

+
+
+

Guessers

+ {{range .Guessers}} +

{{.}}

+ {{end}} +
+
+

Mime

+

{{.Mime}}

+
{{end}} diff --git a/components/room.html b/components/room.html index 22b669d..826273b 100644 --- a/components/room.html +++ b/components/room.html @@ -37,7 +37,7 @@ {{template "addbot" .}} {{end}}
-
+
{{template "teamlist" .Room.BlueTeam}} {{if not .Room.IsRunning}} diff --git a/components/teampew.html b/components/teampew.html index 3a6271d..13f3a65 100644 --- a/components/teampew.html +++ b/components/teampew.html @@ -1,44 +1,46 @@ {{define "teampew"}} -
-

Join Blue Team

-
- -
- {{if and (eq .State.Role "guesser") (eq .State.Team "blue")}} - {{else}} - - {{end}} -
- {{if eq .Room.BlueTeam.Mime ""}} +
- +

Join Blue Team

+ + +
+ {{if and (eq .State.Role "guesser") (eq .State.Team "blue")}} + {{else}} + + {{end}} +
+ {{if eq .Room.BlueTeam.Mime ""}} +
+ +
+ {{end}} +
- {{end}} - -
-
-

Join Red Team

-
- -
- {{if and (eq .State.Role "guesser") (eq .State.Team "red")}} - {{else}} - - {{end}} -
- {{if eq .Room.RedTeam.Mime ""}}
- +

Join Red Team

+ + +
+ {{if and (eq .State.Role "guesser") (eq .State.Team "red")}} + {{else}} + + {{end}} +
+ {{if eq .Room.RedTeam.Mime ""}} +
+ +
+ {{end}} +
- {{end}} -
{{end}}