aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-23 19:39:37 +0000
committerMax Magorsch <arzano@gentoo.org>2020-06-23 19:39:37 +0000
commit7afe2554efd70e0a2ff4b0d54618b9fa744f3af7 (patch)
treec99fd2164e95e1a98e44f41deeca227594b19a75 /pkg/app/list
parentDecode subjects correctly (diff)
downloadarchives-7afe2554efd70e0a2ff4b0d54618b9fa744f3af7.tar.gz
archives-7afe2554efd70e0a2ff4b0d54618b9fa744f3af7.tar.bz2
archives-7afe2554efd70e0a2ff4b0d54618b9fa744f3af7.zip
Specify the used templates more explicitly
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'pkg/app/list')
-rw-r--r--pkg/app/list/utils.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/app/list/utils.go b/pkg/app/list/utils.go
index 7899a88..868e447 100644
--- a/pkg/app/list/utils.go
+++ b/pkg/app/list/utils.go
@@ -24,7 +24,7 @@ func renderShowTemplate(w http.ResponseWriter, listName string, messageData inte
template.Must(
template.New("Show").
ParseGlob("web/templates/layout/*.tmpl")).
- ParseGlob("web/templates/list/*.tmpl"))
+ ParseGlob("web/templates/list/show.tmpl"))
templteData := struct {
ListName string
@@ -46,7 +46,7 @@ func renderMessagesTemplate(w http.ResponseWriter, listName string, date string,
Funcs(getFuncMap()).
ParseGlob("web/templates/layout/*.tmpl")).
ParseGlob("web/templates/list/components/*.tmpl")).
- ParseGlob("web/templates/list/*.tmpl"))
+ ParseGlob("web/templates/list/messages.tmpl"))
templates.ExecuteTemplate(w, "messages.tmpl", buildListData(listName, date, currentPage, maxPages, messages))
}
@@ -60,7 +60,7 @@ func renderThreadsTemplate(w http.ResponseWriter, listName string, date string,
Funcs(getFuncMap()).
ParseGlob("web/templates/layout/*.tmpl")).
ParseGlob("web/templates/list/components/*.tmpl")).
- ParseGlob("web/templates/list/*.tmpl"))
+ ParseGlob("web/templates/list/threads.tmpl"))
templates.ExecuteTemplate(w, "threads.tmpl", buildListData(listName, date, currentPage, maxPages, messages))
}
@@ -75,7 +75,7 @@ func renderBrowseTemplate(w http.ResponseWriter, lists interface{}) {
"formatCount" : utils.FormatMessageCount,
}).
ParseGlob("web/templates/layout/*.tmpl")).
- ParseGlob("web/templates/list/*.tmpl"))
+ ParseGlob("web/templates/list/browse.tmpl"))
templates.ExecuteTemplate(w, "browse.tmpl", lists)
}