commit a64f215414be895b813cc3e002efe0e457dca15b
parent 7d413502ec063df8b50016c25118721532b29436
Author: breadcat <breadcat@users.noreply.github.com>
Date: Sun, 21 Sep 2025 09:04:50 +0100
Same nav on all pages
Diffstat:
6 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/templates/_header.html b/templates/_header.html
@@ -23,4 +23,5 @@ ul.tag-menu li ul li a:hover{background:#ddd}
</style>
</head>
<body>
+<p><a href="/upload">Upload new file</a> | <a href="/">Files</a> | <a href="/tags">Tags</a> | <a href="/untagged">Untagged</a></p>
{{end}}
\ No newline at end of file
diff --git a/templates/file.html b/templates/file.html
@@ -37,5 +37,4 @@ File {{.Data.File.Filename}}
<button type="submit">Add Tag</button>
</form>
-<p><a href="/">← Back to list</a></p>
{{template "_footer"}}
\ No newline at end of file
diff --git a/templates/list.html b/templates/list.html
@@ -1,6 +1,5 @@
{{template "_header" .}}
<h1>Files</h1>
-<p><a href="/upload">Upload new file</a> | <a href="/tags">Browse tags</a> | <a href="/untagged">Untagged files</a></p>
<h2>Tagged Files</h2>
<ul>
diff --git a/templates/tags.html b/templates/tags.html
@@ -1,6 +1,5 @@
{{template "_header" .}}
<h1>All Tags</h1>
-<p><a href="/">Back to files</a></p>
<ul class="tag-menu">
{{range $cat, $tags := .Data}}
diff --git a/templates/untagged.html b/templates/untagged.html
@@ -1,6 +1,5 @@
{{template "_header" .}}
<h1>Untagged Files</h1>
-<p><a href="/">Back to all files</a> | <a href="/upload">Upload new file</a></p>
<ul>
{{range .Data}}
diff --git a/templates/upload.html b/templates/upload.html
@@ -11,5 +11,4 @@
<button type="submit">Add File</button>
</form>
-<a href="/">Back to files</a>
{{template "_footer"}}
\ No newline at end of file