diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-18 00:06:26 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-18 00:06:30 +0900 |
| commit | 7653eb2b28911a0479b3b673c9b63fd490aedb6b (patch) | |
| tree | 3010bbb9d053ed37d3eb207550498a2ce641f022 | |
| parent | dff743f83d313d47a328ca8908a1321db92485e1 (diff) | |
| download | phperkaigi-2025-albatross-7653eb2b28911a0479b3b673c9b63fd490aedb6b.tar.gz phperkaigi-2025-albatross-7653eb2b28911a0479b3b673c9b63fd490aedb6b.tar.zst phperkaigi-2025-albatross-7653eb2b28911a0479b3b673c9b63fd490aedb6b.zip | |
feat(backend): add the link to game watch page to admin game list page
| -rw-r--r-- | backend/admin/templates/games.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/admin/templates/games.html b/backend/admin/templates/games.html index 0616938..6d6bd68 100644 --- a/backend/admin/templates/games.html +++ b/backend/admin/templates/games.html @@ -11,6 +11,13 @@ <a href="/iosdc-japan/2024/code-battle/admin/games/{{ .GameID }}"> {{ .DisplayName }} (id={{ .GameID }} type={{ .GameType }} state={{ .State }}) </a> + <ul> + {{ if and (ne .State "closed") (ne .State "finished") }} + <li> + <a href="/iosdc-japan/2024/code-battle/golf/{{ .GameID }}/watch">Watch</a> + </li> + {{ end }} + </ul> </li> {{ end }} </ul> |
