summaryrefslogtreecommitdiff
path: root/views/forum_view.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-10-05 12:36:42 +0200
committerTor Andersson <tor@ccxvii.net>2022-10-05 17:36:50 +0200
commitb00a8b7a06980271cb68c983733038ace0647f0f (patch)
tree3c0ef823c723451170d342e9482465c1eff1075b /views/forum_view.pug
parentca92b1505f2fc92cd728757d7ae07cfb23cd6df2 (diff)
downloadserver-b00a8b7a06980271cb68c983733038ace0647f0f.tar.gz
Track forum thread read/unread status for logged in users.
Diffstat (limited to 'views/forum_view.pug')
-rw-r--r--views/forum_view.pug4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/forum_view.pug b/views/forum_view.pug
index 990d3d3..46c1b1e 100644
--- a/views/forum_view.pug
+++ b/views/forum_view.pug
@@ -6,6 +6,7 @@ html
title Forum
meta(http-equiv="refresh" content=3600)
style.
+ .unread { font-weight: bold }
tbody a { display: block }
body
include header
@@ -21,7 +22,8 @@ html
tbody
each row in threads
tr
- td: a(href="/forum/thread/"+row.thread_id)= row.subject
+ td(class=row.is_read?"read":"unread")
+ a(href="/forum/thread/"+row.thread_id)= row.subject
td.r= row.count
td.w= row.mtime
tfoot