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>
8 [% createNewPostHr = 1 %]
9 [% FOR post IN posts %]
10 [% IF createNewPostHr AND post.unread%]
11 [% createNewPostHr = 0 %]
13 <p><a name="NewPosts">New posts below:</a></p>
15 <fieldset class="forum-post">
16 <legend class="unread:[% post.unread %]"><b>[% post.username %]</b> : [% post.time %]</legend>
22 <form action="[% c.uri_for('addPost',thread.ftid) %]#NewPosts" method="post"><fieldset class="forum-post"> <legend>New Reply</legend>
23 <textarea rows="25" cols="60" name="message">[% previewMessage %]</textarea>
25 <input type="submit" name="cmd" value="Submit">
26 <input type="submit" name="cmd" value="Preview">
30 [% IF access.size > 0 %]
32 <p>The following ppl have access to this thread: [% FOR a IN access %]
33 [% IF a.uid == UID; hasaccess = 1; END %]
37 <p><a href="[% c.uri_for('removeownthreadaccess',thread.ftid) %]">Remove your access</a></p>
41 [% IF thread.moderate %]
42 <form action="[% c.uri_for('postthreadaccess',thread.ftid) %]#NewPosts" method="post">
43 <fieldset class="forum-post"> <legend>Change thread access</legend>
45 <tr><th>Add</th><th>Remove</th></tr>
47 <td><select name="uid" multiple size="5">
49 <option value="[% u.uid %]">[% u.username %]</option>
52 <td><select name="access" multiple size="5">
54 <option value="[% u.uid %]">[% u.username %]</option>
59 <input type="submit" name="cmd" value="Change access">