aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates/games.html
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-08 10:51:41 +0900
committernsfisis <nsfisis@gmail.com>2025-03-08 10:51:41 +0900
commita7ce31249948e4f0c1950de93f3c4f7cdda51cf4 (patch)
treec4c740f0cccd15f825596f7a115f3b8f8eb8ffa7 /backend/admin/templates/games.html
parent7f4d16dca85263dcbc7b3bb29f5fc50f4371739d (diff)
parentc06d46eae30c9468535fb6af5e9b822acadbbdb6 (diff)
downloadphperkaigi-2025-albatross-a7ce31249948e4f0c1950de93f3c4f7cdda51cf4.tar.gz
phperkaigi-2025-albatross-a7ce31249948e4f0c1950de93f3c4f7cdda51cf4.tar.zst
phperkaigi-2025-albatross-a7ce31249948e4f0c1950de93f3c4f7cdda51cf4.zip
Merge branch '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>