]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/forum/allUnread.tt2
Converted forum to catalyst.
[ndwebbie.git] / root / src / forum / allUnread.tt2
diff --git a/root/src/forum/allUnread.tt2 b/root/src/forum/allUnread.tt2
new file mode 100644 (file)
index 0000000..26f9724
--- /dev/null
@@ -0,0 +1,33 @@
+[% META title = 'Forum unread posts' %]
+
+<h2>All new posts</h2>
+<table class="boards">
+<tr>
+       <th>Unread</th>
+       <th>Total</th>
+       <th>Subject</th>
+       <th>Posted</th>
+       <th>Creator</th>
+       <th>Last post</th>
+</tr>
+[% FOR category IN categories %]
+       <tr><th colspan="2">[% category.category %]</th></tr>
+       [% FOR board IN category.boards %]
+       <tr>
+               <th></th>
+               <th colspan="2"><a href="[% c.uri_for('board',board.fbid) %]">[% board.board %]</th>
+               <th colspan="2"><a href="[% c.uri_for('markBoardAsRead',board.fbid,time) %]">Mark threads as read</a></th>
+       </tr>
+               [% FOR thread IN board.threads %]
+       <tr class="[% IF loop.count % 2 == 0 %]even[% ELSE %]odd[% END %]">
+               <td align="center">[% thread.unread %]</td>
+               <td align="center">[% thread.posts %]</td>
+               <td[% IF thread.sticky %] class="sticky"[% END %]><a href="[% c.uri_for('thread',thread.ftid)%]#NewPosts">&nbsp;[% thread.subject %]&nbsp;</a></td>
+               <td align="left">[% thread.posting_date %]</td>
+               <td align="center">[% thread.username %]</td>
+               <td align="left">[% thread.last_post %]</td>
+       </tr>
+               [% END %]
+       [% END %]
+[% END %]
+</table>