diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-11-10 22:27:46 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-11-13 18:38:17 +0100 |
commit | 0d0dab23fb0ecf16a2abf54295746d7dbd87c2d7 (patch) | |
tree | 84c1ba816d81659860630fa7eb5a798605425161 /views/message_inbox.ejs | |
parent | 66450e7666abdaced2347825a4b9e13bc0528251 (diff) | |
download | server-0d0dab23fb0ecf16a2abf54295746d7dbd87c2d7.tar.gz |
Massive SQL cleanup.
Diffstat (limited to 'views/message_inbox.ejs')
-rw-r--r-- | views/message_inbox.ejs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/views/message_inbox.ejs b/views/message_inbox.ejs index 16b0c46..e70e156 100644 --- a/views/message_inbox.ejs +++ b/views/message_inbox.ejs @@ -1,19 +1,12 @@ <%- include('header', { title: "Inbox" }) %> -<style> -table { width: 100%; max-width: 50em; } -tr.unread { background-color: lightyellow; } -td.from { width: 5em; } -td.time { text-align: right; width: 5em; } -td a { color:black; text-decoration: none; } -</style> <p><a href="/message/send">Send message</a> -<table> +<table class="post"> <tr><th>From<th>Subject<th>Date <% if (messages.length > 0) { messages.forEach((row) => { %> <tr class="<%- row.read ? "read" : "unread" %>"> -<td class="nowrap from"><a href="/user/<%- row.from_name %>"><%= row.from_name %></a> +<td class="author"><a href="/user/<%- row.from_name %>"><%= row.from_name %></a> <td class="subject"><a href="/message/read/<%- row.message_id %>"><%= row.subject %></a> -<td class="nowrap time"><%= row.time %> +<td class="time"><%= row.time %> <% }); } else { %> <tr><td colspan="3">No messages</td> <% } %> |