diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-11-10 22:27:46 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-11-13 18:38:17 +0100 |
commit | 0d0dab23fb0ecf16a2abf54295746d7dbd87c2d7 (patch) | |
tree | 84c1ba816d81659860630fa7eb5a798605425161 /views/forum_thread.ejs | |
parent | 66450e7666abdaced2347825a4b9e13bc0528251 (diff) | |
download | server-0d0dab23fb0ecf16a2abf54295746d7dbd87c2d7.tar.gz |
Massive SQL cleanup.
Diffstat (limited to 'views/forum_thread.ejs')
-rw-r--r-- | views/forum_thread.ejs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/views/forum_thread.ejs b/views/forum_thread.ejs index 0041f20..7232bce 100644 --- a/views/forum_thread.ejs +++ b/views/forum_thread.ejs @@ -1,18 +1,15 @@ <%- include('header', { title: thread.subject }) %> <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; } +table .author { border-right: none; } +table .time { border-left: none; font-weight: normal; } +table .edit { text-align: right; border: none; } </style> <% posts.forEach((row) => { %> <p> -<table> +<table class="post"> <tr> -<th class="nowrap author"><a href="/user/<%- row.author_name %>"><%= row.author_name %></a> -<th class="nowrap time"><%= row.ctime %> +<th class="author"><a href="/user/<%- row.author_name %>"><%= row.author_name %></a> +<th class="time"><%= row.ctime %> <%= row.edited ? "(edited " + row.mtime + ")" : "" %> <tr> <td class="body" colspan="2"><%- row.body %></td> |