From 87eb7db7edac63fb82f0f144d08a12c409609800 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 11 Feb 2022 14:52:28 +0100 Subject: Add explicit thead/tbody/tfoot tags to tables. --- views/message_inbox.pug | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'views/message_inbox.pug') 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 -- cgit v1.2.3