aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-19 15:51:41 +0200
committerMax Magorsch <arzano@gentoo.org>2020-06-19 15:51:41 +0200
commit21181c518cf41828917d36005b726f9452fde657 (patch)
tree38fab1b3c86a41383e48be6b2686d92efd86db62 /web/templates/popular
downloadarchives-21181c518cf41828917d36005b726f9452fde657.tar.gz
archives-21181c518cf41828917d36005b726f9452fde657.tar.bz2
archives-21181c518cf41828917d36005b726f9452fde657.zip
Initial version
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'web/templates/popular')
-rw-r--r--web/templates/popular/threads.tmpl35
1 files changed, 35 insertions, 0 deletions
diff --git a/web/templates/popular/threads.tmpl b/web/templates/popular/threads.tmpl
new file mode 100644
index 0000000..5b849eb
--- /dev/null
+++ b/web/templates/popular/threads.tmpl
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html lang="en">
+{{template "head"}}
+<body>
+{{template "header" "popular"}}
+
+<div class="container mb-5">
+ <div class="row">
+ <div class="col-12 pb-4">
+ <h1 class="first-header">Popular Recent Threads:</h1>
+
+ <table class="table">
+ <tr>
+ <th>Thread</th>
+ <th>Number of messages</th>
+ </tr>
+
+ {{range .}}
+ <tr>
+ <td><a href="/{{(makeMessage .Headers).GetListNameFromSubject}}/message/{{.Id}}/">{{(makeMessage .Headers).GetSubject}}</a></td>
+ <td>{{.Count}}</td>
+ </tr>
+ {{end}}
+
+ </table>
+
+ </div>
+ </div>
+</div>
+
+
+{{template "footer"}}
+
+</body>
+</html>