]> ruin.nu Git - ndwebbie.git/blob - root/src/forum/allUnread.tt2
Converted forum to catalyst.
[ndwebbie.git] / root / src / forum / allUnread.tt2
1 [% META title = 'Forum unread posts' %]
2
3 <h2>All new posts</h2>
4 <table class="boards">
5 <tr>
6         <th>Unread</th>
7         <th>Total</th>
8         <th>Subject</th>
9         <th>Posted</th>
10         <th>Creator</th>
11         <th>Last post</th>
12 </tr>
13 [% FOR category IN categories %]
14         <tr><th colspan="2">[% category.category %]</th></tr>
15         [% FOR board IN category.boards %]
16         <tr>
17                 <th></th>
18                 <th colspan="2"><a href="[% c.uri_for('board',board.fbid) %]">[% board.board %]</th>
19                 <th colspan="2"><a href="[% c.uri_for('markBoardAsRead',board.fbid,time) %]">Mark threads as read</a></th>
20         </tr>
21                 [% FOR thread IN board.threads %]
22         <tr class="[% IF loop.count % 2 == 0 %]even[% ELSE %]odd[% END %]">
23                 <td align="center">[% thread.unread %]</td>
24                 <td align="center">[% thread.posts %]</td>
25                 <td[% IF thread.sticky %] class="sticky"[% END %]><a href="[% c.uri_for('thread',thread.ftid)%]#NewPosts">&nbsp;[% thread.subject %]&nbsp;</a></td>
26                 <td align="left">[% thread.posting_date %]</td>
27                 <td align="center">[% thread.username %]</td>
28                 <td align="left">[% thread.last_post %]</td>
29         </tr>
30                 [% END %]
31         [% END %]
32 [% END %]
33 </table>