]> ruin.nu Git - ndwebbie.git/blob - root/src/forum/thread.tt2
Converted forum to catalyst.
[ndwebbie.git] / root / src / forum / thread.tt2
1 [% META title = 'Forum thread' %]
2 <h2>[% thread.subject %]</h2>
3 <h3>[% thread.category %] - <a href="[% c.uri_for('board',thread.fbid) %]">[% thread.board %]</a></h3>
4 [% IF thread.moderate %]
5 <a href="[% c.uri_for('setSticky',thread.ftid, (thread.sticky ? 0 : 1)) %]">Make this thread [% thread.sticky ? 'unsticky' : 'sticky' %]</a>
6 [% END %]
7
8 [% createNewPostHr = 1 %]
9 [% FOR post IN posts %]
10         [% IF createNewPostHr AND post.unread%]
11         [% createNewPostHr = 0 %]
12 <hr>
13 <p><a name="NewPosts">New posts below:</a></p>
14         [% END %]
15 <fieldset class="forum-post">
16 <legend class="unread:[% post.unread %]"><b>[% post.username %]</b> : [% post.time %]</legend>
17         [% post.message %]
18 </fieldset>
19 [% END %]
20
21 [% IF thread.post %]
22 <form action="[% c.uri_for('addPost',thread.ftid) %]" method="post"><fieldset class="forum-post"> <legend>New Reply</legend>
23         <textarea rows="25" cols="60" name="message">[% previewMessage %]</textarea>
24         <br>
25         <input type="submit" name="cmd" value="Submit">
26         <input type="submit" name="cmd" value="Preview">
27 </fieldset></form>
28 [% END %]