Feat: start game btn; add todos.md
This commit is contained in:
@ -1,6 +1,13 @@
|
||||
{{define "room"}}
|
||||
<div id="hello-user">
|
||||
<p>Hello {{.State.Username}};</p>
|
||||
<p>Room created by {{.Room.CreatorName}};</p>
|
||||
<p>Game is running: {{.Room.IsRunning}}</p>
|
||||
<p>
|
||||
{{if eq .State.Username .Room.CreatorName}}
|
||||
<button hx-get="/start-game" hx-target="#room" class="bg-amber-100 text-black px-4 py-2 rounded">Start Game</button>
|
||||
{{end}}
|
||||
</p>
|
||||
<p>Turn of the {{.Room.TeamTurn}} team</p>
|
||||
<p>
|
||||
{{if eq .State.Team ""}}
|
||||
|
Reference in New Issue
Block a user