taggart

Simple golang tagging filesystem webapp
Log | Files | Refs

commit 6f5cdb6aa8ba81005a1105d11218ac9ac8f657d8
parent a64f215414be895b813cc3e002efe0e457dca15b
Author: breadcat <breadcat@users.noreply.github.com>
Date:   Sun, 21 Sep 2025 09:12:55 +0100

Only show tagged files in tag view

Diffstat:
Mtemplates/list.html | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/templates/list.html b/templates/list.html @@ -1,6 +1,7 @@ {{template "_header" .}} <h1>Files</h1> +{{if .Data.Tagged}} <h2>Tagged Files</h2> <ul> {{range .Data.Tagged}} @@ -18,7 +19,9 @@ <li>No tagged files yet.</li> {{end}} </ul> +{{end}} +{{if .Data.Untagged}} <h2>Untagged Files</h2> <ul> {{range .Data.Untagged}} @@ -36,4 +39,6 @@ <li>No untagged files.</li> {{end}} </ul> +{{end}} + {{template "_footer"}}