Fix: show clue input only if game is running

This commit is contained in:
Grail Finder
2025-06-30 07:15:51 +03:00
parent e375d7c689
commit 643a9a035a
2 changed files with 7 additions and 4 deletions

View File

@ -62,11 +62,13 @@
{{template "cardtable" .Room}}
</div>
<div>
{{if .Room.IsRunning}}
{{if and (eq .State.Role "guesser") (eq .State.Team .Room.TeamTurn)}}
<button hx-get="/end-turn" hx-target="#room" class="bg-amber-100 text-black px-4 py-2 rounded">End Turn</button>
{{else if and (eq .State.Role "mime") (not .Room.MimeDone)}}
{{template "mimeclue"}}
{{end}}
{{end}}
</div>
<div>
{{if and (eq .State.Username .Room.CreatorName) (.Room.IsRunning)}}