Fix: mime to see marks; reverse actions order; hide endturn button

This commit is contained in:
Grail Finder
2025-09-11 18:42:41 +03:00
parent 6daab9cb1a
commit 1664c26c0a
4 changed files with 14 additions and 28 deletions

View File

@@ -65,7 +65,7 @@
</div>
<div>
{{if .Room.IsRunning}}
{{if and (eq .State.Role "guesser") (eq .State.Team .Room.TeamTurn)}}
{{if and (eq .State.Role "guesser") (eq .State.Team .Room.TeamTurn) (.Room.MimeDone)}}
<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"}}