{{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}}


{{template "teamlist" .Room.BlueTeam}} {{if ne .State.Team "blue"}} {{template "teampew" "blue"}} {{end}} {{if ne .State.Team "red"}} {{template "teampew" "red"}} {{end}} {{template "teamlist" .Room.RedTeam}}

{{template "cardtable" .Room}}
{{if eq .State.Role "guesser"}} {{else if eq .State.Role "mime"}} {{template "mimeclue"}} {{end}}
{{end}}