blob: 626662d24960ffaf88e4626dbbb81c445b6358b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<%- include('header', { title: "Inbox" }) -%>
<style>
.unread { background-color: lightyellow; }
</style>
<p><a href="/message/send">Send message</a>
<table class="post">
<tr><th>From<th>Subject<th>Date
<% if (messages.length > 0) { messages.forEach((row) => { %>
<% if (row.read) { %>
<tr class="read">
<% } else {%>
<tr>
<% } %>
<td><a href="/user/<%- row.from_name %>"><%= row.from_name %></a>
<td><a href="/message/read/<%- row.message_id %>"><%= row.subject %></a>
<td><%= row.time %>
<% }); } else { %>
<tr><td colspan="3">No messages</td>
<% } %>
</table>
<p><a href="/outbox">Outbox</a>
|