Fix: show only proper join buttons
This commit is contained in:
@ -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 />
|
||||
|
Reference in New Issue
Block a user