Fix: show only proper join buttons

This commit is contained in:
Grail Finder
2025-06-27 18:37:29 +03:00
parent 86063a4f7e
commit f08aadc557
4 changed files with 59 additions and 10 deletions

View File

@ -40,13 +40,10 @@
<div class="flex justify-center">
<!-- Left Panel -->
{{template "teamlist" .Room.BlueTeam}}
{{if and (ne .State.Team "blue") (not .Room.IsRunning)}}
{{template "teampew" "blue"}}
{{if not .Room.IsRunning}}
{{template "teampew" .}}
{{end}}
<!-- Right Panel -->
{{if and (ne .State.Team "red") (not .Room.IsRunning)}}
{{template "teampew" "red"}}
{{end}}
{{template "teamlist" .Room.RedTeam}}
</div>
<hr />