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_view.ejs | |
parent | 66450e7666abdaced2347825a4b9e13bc0528251 (diff) | |
download | server-0d0dab23fb0ecf16a2abf54295746d7dbd87c2d7.tar.gz |
Massive SQL cleanup.
Diffstat (limited to 'views/forum_view.ejs')
-rw-r--r-- | views/forum_view.ejs | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/views/forum_view.ejs b/views/forum_view.ejs index 5f04f3f..6838803 100644 --- a/views/forum_view.ejs +++ b/views/forum_view.ejs @@ -1,23 +1,18 @@ <%- include('header', { title: "Forum", refresh: 900 }) %> -<style> -table { width: 100%; max-width: 60em; } -td a { color: black; text-decoration: none; } -tfoot td { background-color: gainsboro; } -th.replies { width: 3em; } -th.time { width: 5em; } -th.author { width: 10em; } -</style> -<table> +<table class="post"> <thead> -<tr><th class="subject">Subject<th class="author">Author -<th class="replies">Replies<th class="time">Time +<tr> +<th class="subject">Subject +<th class="author">Author +<th class="replies">Replies +<th class="time">Time </thead> <% threads.forEach((row) => { %> <tr> -<td class="ellipsis"><a href="/forum/thread/<%- row.thread_id %>"><%= row.subject %></a> -<td class="nowrap"><a href="/user/<%- row.author_name %>"><%= row.author_name %></a> -<td><%= row.reply_count %> -<td class="nowrap"><%= row.mtime %> +<td class="subject"><a href="/forum/thread/<%- row.thread_id %>"><%= row.subject %></a> +<td class="author"><a href="/user/<%- row.author_name %>"><%= row.author_name %></a> +<td class="replies"><%= row.replies %> +<td class="time"><%= row.mtime %> <% }); %> <tfoot> <tr> |