summaryrefslogtreecommitdiff
path: root/views/forum_thread.ejs
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-09 22:33:53 +0100
committerTor Andersson <tor@ccxvii.net>2021-11-09 22:59:49 +0100
commit70289448796f6649d74a2ec22b300c3b0075b762 (patch)
tree87959c4ef3469070bdb36db2ea1de723553a83ef /views/forum_thread.ejs
parent86ee8f02d4230199378eb055a5a89c15844208c9 (diff)
downloadserver-70289448796f6649d74a2ec22b300c3b0075b762.tar.gz
Show user profiles.
Diffstat (limited to 'views/forum_thread.ejs')
-rw-r--r--views/forum_thread.ejs3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/forum_thread.ejs b/views/forum_thread.ejs
index fad8829..0041f20 100644
--- a/views/forum_thread.ejs
+++ b/views/forum_thread.ejs
@@ -2,6 +2,7 @@
<style>
table { width: 100%; max-width: 50em; }
td.body { white-space: pre-wrap; padding: 10px 10px; }
+th a { color: black; text-decoration: none; }
th.author { border-right: none; }
th.time { text-align: right; border-left: none; font-weight: normal; }
td.edit { text-align: right; border: none; }
@@ -10,7 +11,7 @@ td.edit { text-align: right; border: none; }
<p>
<table>
<tr>
-<th class="nowrap author"><%= row.author_name %>
+<th class="nowrap author"><a href="/user/<%- row.author_name %>"><%= row.author_name %></a>
<th class="nowrap time"><%= row.ctime %>
<%= row.edited ? "(edited " + row.mtime + ")" : "" %>
<tr>