aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates
diff options
context:
space:
mode:
Diffstat (limited to 'backend/admin/templates')
-rw-r--r--backend/admin/templates/dashboard.html3
-rw-r--r--backend/admin/templates/online_qualifying_ranking.html31
2 files changed, 34 insertions, 0 deletions
diff --git a/backend/admin/templates/dashboard.html b/backend/admin/templates/dashboard.html
index 15b10ff..2d030ef 100644
--- a/backend/admin/templates/dashboard.html
+++ b/backend/admin/templates/dashboard.html
@@ -7,6 +7,9 @@
<p>
<a href="{{ .BasePath }}/admin/games">Games</a>
</p>
+<p>
+ <a href="{{ .BasePath }}/admin/online-qualifying-ranking?game_1=7&game_2=8">Online Qualifying Ranking</a>
+</p>
<form method="post" action="{{ .BasePath }}/logout">
<button type="submit">Logout</button>
</form>
diff --git a/backend/admin/templates/online_qualifying_ranking.html b/backend/admin/templates/online_qualifying_ranking.html
new file mode 100644
index 0000000..3b00046
--- /dev/null
+++ b/backend/admin/templates/online_qualifying_ranking.html
@@ -0,0 +1,31 @@
+{{ template "base.html" . }}
+
+{{ define "breadcrumb" }}
+<a href="{{ .BasePath }}/admin/dashboard">Dashboard</a>
+{{ end }}
+
+{{ define "content" }}
+<table>
+ <thead>
+ <tr>
+ <th scope="col">順位</th>
+ <th scope="col">プレイヤー</th>
+ <th scope="col">スコア</th>
+ <th scope="col">提出時刻</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{ range .Entries }}
+ <tr>
+ <td>{{ .Rank }}</td>
+ <td>{{ .Username }}</td>
+ <td>{{ .Score1 }}</td>
+ <td>{{ .Score2 }}</td>
+ <td>{{ .TotalScore }}</td>
+ <td>{{ .SubmittedAt1 }}</td>
+ <td>{{ .SubmittedAt2 }}</td>
+ </tr>
+ {{ end }}
+ </tbody>
+</table>
+{{ end }}