summaryrefslogtreecommitdiff
path: root/views/message_outbox.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/message_outbox.ejs')
-rw-r--r--views/message_outbox.ejs28
1 files changed, 0 insertions, 28 deletions
diff --git a/views/message_outbox.ejs b/views/message_outbox.ejs
deleted file mode 100644
index a5d1abd..0000000
--- a/views/message_outbox.ejs
+++ /dev/null
@@ -1,28 +0,0 @@
-<%- include('header', { title: "Outbox" }) -%>
-<style>
-.unread { background-color: lightyellow; }
-</style>
-<script>
-function delete_all() {
- let warning = "Are you sure you want to delete ALL the messages?";
- if (window.confirm(warning))
- window.location.href = "/outbox/delete";
-}
-</script>
-<table class="post">
-<tr><th>To<th>Subject<th>Date
-<% if (messages.length > 0) { messages.forEach((row) => { %>
-<% if (row.read) { %>
-<tr class="read">
-<% } else {%>
-<tr>
-<% } %>
-<td><a href="/user/<%- row.to_name %>"><%= row.to_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>
-<button onclick="delete_all()">Delete all</button>