aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-21 02:46:37 +0900
committernsfisis <nsfisis@gmail.com>2024-08-21 02:46:37 +0900
commit483e297f4789fb1fdaa241f87686a00ef55a046d (patch)
treef4227c503ce82ffeba84603f872f7237fbee8ea7 /backend/admin/templates
parent0765f61a494de1f284042ba56382983d58d5a6f5 (diff)
parent5dba0da3efae63cab5313582a17f20dbb41c6450 (diff)
downloadphperkaigi-2025-albatross-483e297f4789fb1fdaa241f87686a00ef55a046d.tar.gz
phperkaigi-2025-albatross-483e297f4789fb1fdaa241f87686a00ef55a046d.tar.zst
phperkaigi-2025-albatross-483e297f4789fb1fdaa241f87686a00ef55a046d.zip
Merge branch 'feat/audio'
Diffstat (limited to 'backend/admin/templates')
-rw-r--r--backend/admin/templates/audio.html14
-rw-r--r--backend/admin/templates/dashboard.html3
2 files changed, 17 insertions, 0 deletions
diff --git a/backend/admin/templates/audio.html b/backend/admin/templates/audio.html
new file mode 100644
index 0000000..21ec463
--- /dev/null
+++ b/backend/admin/templates/audio.html
@@ -0,0 +1,14 @@
+{{ template "base.html" . }}
+
+{{ define "breadcrumb" }}
+<a href="{{ .BasePath }}/admin/dashboard">Dashboard</a>
+{{ end }}
+
+{{ define "content" }}
+ {{ range .Audio }}
+ <figure>
+ <figcaption>{{ .Label }}</figcaption>
+ <audio controls src="{{ $.BasePath }}/files/audio/{{ .FileName }}"></audio>
+ </figure>
+ {{ end }}
+{{ end }}
diff --git a/backend/admin/templates/dashboard.html b/backend/admin/templates/dashboard.html
index 15b10ff..0f1fbaf 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/audio">Audio Test</a>
+</p>
<form method="post" action="{{ .BasePath }}/logout">
<button type="submit">Logout</button>
</form>