blob: c460bd3a3b7db6a742b2f7ccf4330395cdff507a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<%- include('header', { title: "Outbox" }) %>
<style>
table { width: 100%; max-width: 50em; }
tr.unread { background-color: lemonchiffon; }
td.to { 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>
<br>
» <a href="/inbox">Inbox</a>
<table>
<tr><th>To<th>Subject<th>Date
<% if (messages.length > 0) { messages.forEach((row) => { %>
<tr class="<%- row.read ? "read" : "unread" %>">
<td class="nowrap to"><%= row.to_name %>
<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>
|