diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-28 15:15:01 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-28 15:15:01 +0900 |
| commit | 10f0cd9dbc408b171fbd6a96ed1b552407046b13 (patch) | |
| tree | 6a4eebd9dadfa1355964dce3570d101d21124ac0 /backend | |
| parent | 2794e9de67781614edc17336b284266d3e4a740c (diff) | |
| download | phperkaigi-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')
| -rw-r--r-- | backend/admin/templates/games.html | 8 |
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> |
