summaryrefslogtreecommitdiff
path: root/views/forum_view.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/forum_view.ejs')
-rw-r--r--views/forum_view.ejs25
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>