summaryrefslogtreecommitdiff
path: root/views/message_inbox.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/message_inbox.ejs')
-rw-r--r--views/message_inbox.ejs10
1 files changed, 4 insertions, 6 deletions
diff --git a/views/message_inbox.ejs b/views/message_inbox.ejs
index 91490ac..16b0c46 100644
--- a/views/message_inbox.ejs
+++ b/views/message_inbox.ejs
@@ -1,23 +1,21 @@
<%- include('header', { title: "Inbox" }) %>
<style>
table { width: 100%; max-width: 50em; }
-tr.unread { background-color: lemonchiffon; }
+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>
-&#xbb; <a href="/message/send">Send message</a>
-<br>
-&#xbb; <a href="/outbox">Outbox</a>
+<p><a href="/message/send">Send message</a>
<table>
<tr><th>From<th>Subject<th>Date
<% if (messages.length > 0) { messages.forEach((row) => { %>
<tr class="<%- row.read ? "read" : "unread" %>">
-<td class="nowrap from"><%= row.from_name %>
+<td class="nowrap from"><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 %>
<% }); } else { %>
<tr><td colspan="3">No messages</td>
<% } %>
</table>
+<p><a href="/outbox">Outbox</a>