aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates
diff options
context:
space:
mode:
Diffstat (limited to 'backend/admin/templates')
-rw-r--r--backend/admin/templates/base.html6
-rw-r--r--backend/admin/templates/dashboard.html6
-rw-r--r--backend/admin/templates/game_edit.html2
-rw-r--r--backend/admin/templates/games.html6
-rw-r--r--backend/admin/templates/user_edit.html2
-rw-r--r--backend/admin/templates/users.html6
6 files changed, 14 insertions, 14 deletions
diff --git a/backend/admin/templates/base.html b/backend/admin/templates/base.html
index 49e2066..8e71194 100644
--- a/backend/admin/templates/base.html
+++ b/backend/admin/templates/base.html
@@ -2,9 +2,9 @@
<html>
<head>
<title>ADMIN {{ .Title }} | iOSDC Japan 2024 Albatross.swift</title>
- <link rel="icon" href="/iosdc-japan/2024/code-battle/favicon.svg">
- <link rel="stylesheet" href="/iosdc-japan/2024/code-battle/admin/css/normalize.css">
- <link rel="stylesheet" href="/iosdc-japan/2024/code-battle/admin/css/sakura.css">
+ <link rel="icon" href="{{ .BasePath }}/favicon.svg">
+ <link rel="stylesheet" href="{{ .BasePath }}/admin/css/normalize.css">
+ <link rel="stylesheet" href="{{ .BasePath }}/admin/css/sakura.css">
</head>
<body>
<section>
diff --git a/backend/admin/templates/dashboard.html b/backend/admin/templates/dashboard.html
index b2037cb..15b10ff 100644
--- a/backend/admin/templates/dashboard.html
+++ b/backend/admin/templates/dashboard.html
@@ -2,12 +2,12 @@
{{ define "content" }}
<p>
- <a href="/iosdc-japan/2024/code-battle/admin/users">Users</a>
+ <a href="{{ .BasePath }}/admin/users">Users</a>
</p>
<p>
- <a href="/iosdc-japan/2024/code-battle/admin/games">Games</a>
+ <a href="{{ .BasePath }}/admin/games">Games</a>
</p>
-<form method="post" action="/iosdc-japan/2024/code-battle/logout">
+<form method="post" action="{{ .BasePath }}/logout">
<button type="submit">Logout</button>
</form>
{{ end }}
diff --git a/backend/admin/templates/game_edit.html b/backend/admin/templates/game_edit.html
index 66f3b9e..48a0625 100644
--- a/backend/admin/templates/game_edit.html
+++ b/backend/admin/templates/game_edit.html
@@ -1,7 +1,7 @@
{{ template "base.html" . }}
{{ define "breadcrumb" }}
-<a href="/iosdc-japan/2024/code-battle/admin/dashboard">Dashboard</a> | <a href="/iosdc-japan/2024/code-battle/admin/games">Games</a>
+<a href="{{ .BasePath }}/admin/dashboard">Dashboard</a> | <a href="{{ .BasePath }}/admin/games">Games</a>
{{ end }}
{{ define "content" }}
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>
diff --git a/backend/admin/templates/user_edit.html b/backend/admin/templates/user_edit.html
index 56ecbc8..d31338a 100644
--- a/backend/admin/templates/user_edit.html
+++ b/backend/admin/templates/user_edit.html
@@ -1,7 +1,7 @@
{{ template "base.html" . }}
{{ define "breadcrumb" }}
-<a href="/iosdc-japan/2024/code-battle/admin/dashboard">Dashboard</a> | <a href="/iosdc-japan/2024/code-battle/admin/users">Users</a>
+<a href="{{ .BasePath }}/admin/dashboard">Dashboard</a> | <a href="{{ .BasePath }}/admin/users">Users</a>
{{ end }}
{{ define "content" }}
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>