{{define "room"}}

Hello {{.State.Username}};

Room created by {{.Room.CreatorName}};

Game is running: {{.Room.IsRunning}}

{{if and (eq .State.Username .Room.CreatorName) (not .Room.IsRunning)}} {{end}}

Turn of the {{.Room.TeamTurn}} team

{{if eq .State.Team ""}} join the team! {{else}} you're on the team {{.State.Team}}! {{end}}


{{if .Room.IsRunning}} {{template "cardcounter" .Room}} {{end}}
{{template "teamlist" .Room.BlueTeam}} {{if and (ne .State.Team "blue") (not .Room.IsRunning)}} {{template "teampew" "blue"}} {{end}} {{if and (ne .State.Team "red") (not .Room.IsRunning)}} {{template "teampew" "red"}} {{end}} {{template "teamlist" .Room.RedTeam}}

{{template "cardtable" .Room}}
{{if and (eq .State.Role "guesser") (eq .State.Team .Room.TeamTurn)}} {{else if eq .State.Role "mime"}} {{template "mimeclue"}} {{end}}
{{if .Room.MimeDone}} {{template "cluepop"}} {{end}}
{{end}}