7df962bdcd4fa8db3ad69a17171c08cbfb3634d9
[zzz-spline-forum.git] / splinext / forum / templates / forum / threads.mako
1 <%inherit file="/base.mako" />
2 <%namespace name="forumlib" file="/forum/lib.mako" />
3
4 <%def name="title()">${c.forum.name} - Forums</%def>
5
6 <%def name="title_in_page()">
7 <ul id="breadcrumbs">
8     <li><a href="${url(controller='forum', action='forums')}">Forums</a></li>
9     <li>${c.forum.name}</li>
10 </ul>
11 </%def>
12
13 <h1>Threads</h1>
14 ${forumlib.hierarchy(c.forum)}
15
16 <table class="forum-list striped-rows">
17 <thead>
18     <tr class="header-row">
19         <th class="name">
20             <img src="${h.static_uri('spline', 'icons/folder-open-document-text.png')}" alt="">
21             Thread
22         </th>
23         <th class="stats">Posts</th>
24     </tr>
25 </thead>
26 <tbody>
27     % for thread in c.threads:
28     <tr>
29         <td class="name"><a href="${url(controller='forum', action='posts', forum_id=c.forum.id, thread_id=thread.id)}">${thread.subject}</a></td>
30         <td class="stats">${thread.post_count}</td>
31     </tr>
32     % endfor
33 </tbody>
34 </table>
35
36 ${forumlib.write_thread_form(c.forum)}