diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-19 01:21:28 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-19 02:09:49 +0900 |
| commit | 98974136648935143298c0e0a01714bb146909f1 (patch) | |
| tree | b42ad91ef652d4d86eb03d56cbda063caf0d0b78 /backend/admin/templates/games.html | |
| parent | 0ad3546aa69d2269e5d739e9b62bc956e95e7f6e (diff) | |
| download | phperkaigi-2025-albatross-98974136648935143298c0e0a01714bb146909f1.tar.gz phperkaigi-2025-albatross-98974136648935143298c0e0a01714bb146909f1.tar.zst phperkaigi-2025-albatross-98974136648935143298c0e0a01714bb146909f1.zip | |
refactor(backend): do not hard-code base path
Diffstat (limited to 'backend/admin/templates/games.html')
| -rw-r--r-- | backend/admin/templates/games.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/admin/templates/games.html b/backend/admin/templates/games.html index 6d6bd68..9dd9cae 100644 --- a/backend/admin/templates/games.html +++ b/backend/admin/templates/games.html @@ -1,20 +1,20 @@ {{ template "base.html" . }} {{ define "breadcrumb" }} -<a href="/iosdc-japan/2024/code-battle/admin/dashboard">Dashboard</a> +<a href="{{ .BasePath }}/admin/dashboard">Dashboard</a> {{ end }} {{ define "content" }} <ul> {{ range .Games }} <li> - <a href="/iosdc-japan/2024/code-battle/admin/games/{{ .GameID }}"> + <a href="{{ $.BasePath }}/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> + <a href="{{ $.BasePath }}/golf/{{ .GameID }}/watch">Watch</a> </li> {{ end }} </ul> |
