From 494b4967c5969b757d2756a9852f831c17dd04c9 Mon Sep 17 00:00:00 2001 From: Azareal Date: Tue, 28 May 2019 13:29:31 +1000 Subject: [PATCH] sneak in a secret gallery... --- templates/forum_gallery.html | 80 ++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 templates/forum_gallery.html diff --git a/templates/forum_gallery.html b/templates/forum_gallery.html new file mode 100644 index 00000000..f23e2676 --- /dev/null +++ b/templates/forum_gallery.html @@ -0,0 +1,80 @@ +{{template "header.html" . }} + + + +
+
+
+

{{.Title}}

+
+ {{if .CurrentUser.Loggedin}} +
+ {{if .CurrentUser.Perms.CreateTopic}} +
+
+
+ {{/** TODO: Add a permissions check for this **/}} +
+ +
+ {{else}}
{{end}} +
+
+ {{end}} +
+ {{if .CurrentUser.Loggedin}} + {{template "topics_mod_floater.html"}} + + {{if .CurrentUser.Perms.CreateTopic}} + + {{end}} + {{end}} +
+ {{range .ItemList}}
+
+ +
{{.Title}} +
+ + +
{{else}}
{{lang "forum_no_topics"}}{{if .CurrentUser.Loggedin}}{{if .CurrentUser.Perms.CreateTopic}} {{lang "forum_start_one"}}{{end}}{{end}}
{{end}} +
+ +{{template "paginator.html" . }} +
+{{template "footer.html" . }}