summaryrefslogtreecommitdiff
path: root/views/message_outbox.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-02-11 14:52:28 +0100
committerTor Andersson <tor@ccxvii.net>2022-02-15 12:18:30 +0100
commit87eb7db7edac63fb82f0f144d08a12c409609800 (patch)
treef8a6f8600a9f7909df07f640e2f09c9a6764a7f6 /views/message_outbox.pug
parentb967bfc72c54ceafe800e44568aa4fa20fabd675 (diff)
downloadserver-87eb7db7edac63fb82f0f144d08a12c409609800.tar.gz
Add explicit thead/tbody/tfoot tags to tables.
Diffstat (limited to 'views/message_outbox.pug')
-rw-r--r--views/message_outbox.pug26
1 files changed, 15 insertions, 11 deletions
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