aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates/games.html
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-28 15:15:01 +0900
committernsfisis <nsfisis@gmail.com>2026-02-28 15:15:01 +0900
commit10f0cd9dbc408b171fbd6a96ed1b552407046b13 (patch)
tree6a4eebd9dadfa1355964dce3570d101d21124ac0 /backend/admin/templates/games.html
parent2794e9de67781614edc17336b284266d3e4a740c (diff)
downloadphperkaigi-2026-albatross-10f0cd9dbc408b171fbd6a96ed1b552407046b13.tar.gz
phperkaigi-2026-albatross-10f0cd9dbc408b171fbd6a96ed1b552407046b13.tar.zst
phperkaigi-2026-albatross-10f0cd9dbc408b171fbd6a96ed1b552407046b13.zip
feat(admin): show play/watch links for non-public games
Admin games list page already shows all games including non-public ones, but play/watch links were hidden behind an IsPublic check. Since this is an admin-only page, always show the links. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'backend/admin/templates/games.html')
-rw-r--r--backend/admin/templates/games.html8
1 files changed, 2 insertions, 6 deletions
diff --git a/backend/admin/templates/games.html b/backend/admin/templates/games.html
index 63f27b7..e4804e1 100644
--- a/backend/admin/templates/games.html
+++ b/backend/admin/templates/games.html
@@ -15,12 +15,8 @@
{{ .DisplayName }} (id={{ .GameID }} type={{ .GameType }} {{ if not .IsPublic }}private{{ end }})
</a>
<ul>
- {{ 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 }}
+ <li><a href="{{ $.BasePath }}golf/{{ .GameID }}/play">Play</a></li>
+ <li><a href="{{ $.BasePath }}golf/{{ .GameID }}/watch">Watch</a></li>
<li><a href="{{ $.BasePath }}admin/games/{{ .GameID }}/submissions">Submissions</a></li>
</ul>
</li>