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_read.pug | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'views/message_read.pug') 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 -- cgit v1.2.3