aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates/problems.html
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-06 00:32:03 +0900
committernsfisis <nsfisis@gmail.com>2025-09-06 00:32:03 +0900
commite33bfff4db95586a3140b5e71a7d3dba2c72f694 (patch)
treee469dee99215bb888c3dd3f30d0c3cfba0f669d0 /backend/admin/templates/problems.html
parent94d03dc712aff58e7594e7af38e0b6881238c778 (diff)
downloadiosdc-japan-2025-albatross-e33bfff4db95586a3140b5e71a7d3dba2c72f694.tar.gz
iosdc-japan-2025-albatross-e33bfff4db95586a3140b5e71a7d3dba2c72f694.tar.zst
iosdc-japan-2025-albatross-e33bfff4db95586a3140b5e71a7d3dba2c72f694.zip
feat(backend): add admin page for problems
Diffstat (limited to 'backend/admin/templates/problems.html')
-rw-r--r--backend/admin/templates/problems.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/backend/admin/templates/problems.html b/backend/admin/templates/problems.html
new file mode 100644
index 0000000..120789e
--- /dev/null
+++ b/backend/admin/templates/problems.html
@@ -0,0 +1,20 @@
+{{ template "base.html" . }}
+
+{{ define "breadcrumb" }}
+<a href="{{ .BasePath }}admin/dashboard">Dashboard</a>
+{{ end }}
+
+{{ define "content" }}
+<div>
+ <a href="{{ .BasePath }}admin/problems/new">Create New Problem</a>
+</div>
+<ul>
+ {{ range .Problems }}
+ <li>
+ <a href="{{ $.BasePath }}admin/problems/{{ .ProblemID }}">
+ {{ .Title }} (id={{ .ProblemID }} language={{ .Language }})
+ </a>
+ </li>
+ {{ end }}
+</ul>
+{{ end }}