diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-11-09 23:20:06 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-11-09 23:20:06 +0100 |
commit | 2f2047d1dc4db09a682f7bf8230d42ee5d0d32d3 (patch) | |
tree | da906413df0bef807754c1df0b658515f869ddc5 | |
parent | ac7792ab371f8ee17804539b564a4a13b539ab73 (diff) | |
download | server-2f2047d1dc4db09a682f7bf8230d42ee5d0d32d3.tar.gz |
Linkify user names on message page.
-rw-r--r-- | views/message_read.ejs | 5 |
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> |