diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-02-11 14:52:28 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-02-15 12:18:30 +0100 |
commit | 87eb7db7edac63fb82f0f144d08a12c409609800 (patch) | |
tree | f8a6f8600a9f7909df07f640e2f09c9a6764a7f6 /views/message_read.pug | |
parent | b967bfc72c54ceafe800e44568aa4fa20fabd675 (diff) | |
download | server-87eb7db7edac63fb82f0f144d08a12c409609800.tar.gz |
Add explicit thead/tbody/tfoot tags to tables.
Diffstat (limited to 'views/message_read.pug')
-rw-r--r-- | views/message_read.pug | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/views/message_read.pug b/views/message_read.pug index 65b845d..db43423 100644 --- a/views/message_read.pug +++ b/views/message_read.pug @@ -4,7 +4,8 @@ html head include head title= message.subject - style th { font-weight: normal; width: 4em; } + style. + .head {white-space:pre-wrap} script. function delete_message(id) { let warning = "Are you sure you want to DELETE this message?"; @@ -19,18 +20,13 @@ html article h1= message.subject - table - tr - th From: - td: a(href="/user/"+message.from_name)= message.from_name - tr - th To: - td: a(href="/user/"+message.to_name)= message.to_name - tr - th Date: - td= message.time - tr - td.body(colspan=2)!= message.body + div.post + div.head + div. + From: #[a(href="/user/"+message.from_name)= message.from_name] + To: #[a(href="/user/"+message.to_name)= message.to_name] + div= message.time + div.body!= message.body p if message.from_id !== user.user_id |