summaryrefslogtreecommitdiff
path: root/views/message_read.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/message_read.ejs')
-rw-r--r--views/message_read.ejs5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/message_read.ejs b/views/message_read.ejs
index f4a791e..28762cf 100644
--- a/views/message_read.ejs
+++ b/views/message_read.ejs
@@ -3,6 +3,7 @@
table { width: 100%; max-width: 50em; }
th { width: 5em; font-weight: normal; }
td.body { white-space: pre-wrap; padding: 10px 10px; }
+td a { color: black; text-decoration: none; }
</style>
<script>
function delete_message(id) {
@@ -15,8 +16,8 @@ function reply_message(id) {
}
</script>
<table>
-<tr><th>From:<td> <%= mail.from_name %>
-<tr><th>To:<td> <%= mail.to_name %>
+<tr><th>From:<td> <a href="/user/<%- mail.from_name %>"><%= mail.from_name %></a>
+<tr><th>To:<td> <a href="/user/<%- mail.to_name %>"><%= mail.to_name %></a>
<tr><th>Date:<td> <%= mail.time %>
<tr><td colspan="2" class="body"><%= mail.body %></td>
</table>