aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates
diff options
context:
space:
mode:
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>