summaryrefslogtreecommitdiff
path: root/views/message_inbox.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/message_inbox.pug
parentca92b1505f2fc92cd728757d7ae07cfb23cd6df2 (diff)
downloadserver-b00a8b7a06980271cb68c983733038ace0647f0f.tar.gz
Track forum thread read/unread status for logged in users.
Diffstat (limited to 'views/message_inbox.pug')
-rw-r--r--views/message_inbox.pug10
1 files changed, 6 insertions, 4 deletions
diff --git a/views/message_inbox.pug b/views/message_inbox.pug
index 29bd4d3..10c4626 100644
--- a/views/message_inbox.pug
+++ b/views/message_inbox.pug
@@ -5,7 +5,7 @@ html
include head
title Inbox
style.
- .unread { background-color: lightyellow }
+ .unread { font-weight: bold }
td a { display: block }
body
include header
@@ -23,9 +23,11 @@ html
th Date
tbody
each row in messages
- tr(class=row.is_read?"read":"unread")
- td: a(href="/user/"+row.from_name)= row.from_name
- td: a(href="/message/read/"+row.message_id)= row.subject
+ tr
+ td
+ a(href="/user/"+row.from_name)= row.from_name
+ td(class=row.is_read?"read":"unread")
+ a(href="/message/read/"+row.message_id)= row.subject
td= row.time
else
tr