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/users.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/users.html')
| -rw-r--r-- | backend/admin/templates/users.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/admin/templates/users.html b/backend/admin/templates/users.html index 3dc03c0..36fae0d 100644 --- a/backend/admin/templates/users.html +++ b/backend/admin/templates/users.html @@ -1,17 +1,17 @@ {{ 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 .Users }} <li> - <a href="/iosdc-japan/2024/code-battle/admin/users/{{ .UserID }}"> + <a href="{{ $.BasePath }}/admin/users/{{ .UserID }}"> {{ .DisplayName }} (id={{ .UserID }} username={{ .Username }}){{ if .IsAdmin }} <em>admin</em>{{ end }} </a> - <form method="post" action="/iosdc-japan/2024/code-battle/admin/users/{{ .UserID }}/fetch-icon"> + <form method="post" action="{{ $.BasePath }}/admin/users/{{ .UserID }}/fetch-icon"> <button type="submit">Fetch Icon</button> </form> </li> |
