summaryrefslogtreecommitdiff
path: root/views/message_inbox.pug
diff options
context:
space:
mode:
Diffstat (limited to 'views/message_inbox.pug')
-rw-r--r--views/message_inbox.pug28
1 files changed, 16 insertions, 12 deletions
diff --git a/views/message_inbox.pug b/views/message_inbox.pug
index 9b0a1ab..29bd4d3 100644
--- a/views/message_inbox.pug
+++ b/views/message_inbox.pug
@@ -4,7 +4,9 @@ html
head
include head
title Inbox
- style .unread { background-color: lightyellow }
+ style.
+ .unread { background-color: lightyellow }
+ td a { display: block }
body
include header
article
@@ -14,18 +16,20 @@ html
a(href="/message/send") Send message
table
- tr
- th From
- th Subject
- th Date
- 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
- td= row.time
- else
+ thead
tr
- td(colspan=3) No messages.
+ th From
+ th Subject
+ 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
+ td= row.time
+ else
+ tr
+ td(colspan=3) No messages.
p
a(href="/outbox") Outbox