From c8d7b891c1263a09569a693c10d43abf84a615c3 Mon Sep 17 00:00:00 2001 From: Noah Date: Wed, 31 Aug 2022 22:05:05 -0700 Subject: [PATCH] Improve Newest Forum page --- web/templates/forum/newest.html | 79 ++++++++++++++++++++++++++------- 1 file changed, 62 insertions(+), 17 deletions(-) diff --git a/web/templates/forum/newest.html b/web/templates/forum/newest.html index a259de6..2b80c9b 100644 --- a/web/templates/forum/newest.html +++ b/web/templates/forum/newest.html @@ -82,6 +82,18 @@

{{.Thread.Title}} + + {{if .Thread.Pinned}} + + {{end}} + + {{if .Thread.Explicit}} + + {{end}} + + {{if .Thread.NoReply}} + + {{end}}

@@ -89,29 +101,62 @@ {{TrimEllipses .Thread.Comment.Message 256}} -
- by {{.Thread.Comment.User.Username}} +
+ {{if eq .Comment.ID .Thread.CommentID}}new {{end}}thread by {{.Thread.Comment.User.Username}} + in + {{.Forum.Title}} + + {{if .Forum.Privileged}} + + {{end}} + + {{if .Forum.Explicit}} + + {{end}} + – {{SincePrettyCoarse .Thread.Comment.UpdatedAt}} ago
-
- -

- Latest Post -

- + {{if ne .Comment.ID .Thread.CommentID}} - - {{TrimEllipses .Comment.Message 256}} - - {{end}} +
-
- by {{.Comment.User.Username}} - – - {{SincePrettyCoarse .Comment.UpdatedAt}} ago -
+ + + + {{TrimEllipses .Comment.Message 256}} + + +
+ {{SincePrettyCoarse .Comment.UpdatedAt}} ago +
+ {{end}}