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_outbox.pug | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'views/message_outbox.pug') diff --git a/views/message_outbox.pug b/views/message_outbox.pug index ee19a2f..57d6d60 100644 --- a/views/message_outbox.pug +++ b/views/message_outbox.pug @@ -4,6 +4,8 @@ html head include head title Outbox + style. + td a { display: block } script. function delete_all() { let warning = "Are you sure you want to delete ALL the messages?"; @@ -19,18 +21,20 @@ html a(href="/message/send") Send message table - tr - th From - th Subject - th Date - each row in messages + thead tr - td: a(href="/user/"+row.to_name)= row.to_name - td: a(href="/message/read/"+row.message_id)= row.subject - td= row.time - else - tr - td(colspan=3) No messages. + th From + th Subject + th Date + tbody + each row in messages + tr + td: a(href="/user/"+row.to_name)= row.to_name + td: a(href="/message/read/"+row.message_id)= row.subject + td= row.time + else + tr + td(colspan=3) No messages. p button(onclick="delete_all()") Delete all -- cgit v1.2.3