summaryrefslogtreecommitdiff
path: root/views/message_read.ejs
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-09 23:20:06 +0100
committerTor Andersson <tor@ccxvii.net>2021-11-09 23:20:06 +0100
commit2f2047d1dc4db09a682f7bf8230d42ee5d0d32d3 (patch)
treeda906413df0bef807754c1df0b658515f869ddc5 /views/message_read.ejs
parentac7792ab371f8ee17804539b564a4a13b539ab73 (diff)
downloadserver-2f2047d1dc4db09a682f7bf8230d42ee5d0d32d3.tar.gz
Linkify user names on message page.
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>