aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates/games.html
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-08 10:13:05 +0900
committernsfisis <nsfisis@gmail.com>2025-03-08 10:13:05 +0900
commit8dbdf96e674c1e26d7c98af8d0608f30bc1bf166 (patch)
tree7c82476f6bbbc71d72ab7e71e39559eca197fd95 /backend/admin/templates/games.html
parent54316868c3bec1ff9b04643dfe6c13cf56bf3246 (diff)
parent1e6df136d8202c8adf65948527f4c3e7583b338c (diff)
downloadphperkaigi-2025-albatross-8dbdf96e674c1e26d7c98af8d0608f30bc1bf166.tar.gz
phperkaigi-2025-albatross-8dbdf96e674c1e26d7c98af8d0608f30bc1bf166.tar.zst
phperkaigi-2025-albatross-8dbdf96e674c1e26d7c98af8d0608f30bc1bf166.zip
Merge branch 'phperkaigi-2025-ws-to-polling' into phperkaigi-2025
Diffstat (limited to 'backend/admin/templates/games.html')
-rw-r--r--backend/admin/templates/games.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/backend/admin/templates/games.html b/backend/admin/templates/games.html
index 9dd9cae..3be6726 100644
--- a/backend/admin/templates/games.html
+++ b/backend/admin/templates/games.html
@@ -9,13 +9,14 @@
{{ range .Games }}
<li>
<a href="{{ $.BasePath }}/admin/games/{{ .GameID }}">
- {{ .DisplayName }} (id={{ .GameID }} type={{ .GameType }} state={{ .State }})
+ {{ .DisplayName }} (id={{ .GameID }} type={{ .GameType }} {{ if not .IsPublic }}private{{ end }})
</a>
<ul>
- {{ if and (ne .State "closed") (ne .State "finished") }}
- <li>
- <a href="{{ $.BasePath }}/golf/{{ .GameID }}/watch">Watch</a>
- </li>
+ {{ if .IsPublic }}
+ <li><a href="{{ $.BasePath }}/golf/{{ .GameID }}/play">Play</a></li>
+ {{ end }}
+ {{ if .IsPublic }}
+ <li><a href="{{ $.BasePath }}/golf/{{ .GameID }}/watch">Watch</a></li>
{{ end }}
</ul>
</li>