Show access levels and context everywhere!
[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 <ul class="forum-hierarchy">
15     <li>
16         In forum: <strong><img src="${h.static_uri('spline', 'icons/folders-stack.png')}" alt=""> ${c.forum.name}</strong>
17         ${forumlib.forum_access_level(c.forum)}
18     </li>
19 </ul>
20
21 <table class="forum-list striped-rows">
22 <thead>
23     <tr class="header-row">
24         <th class="name">
25             <img src="${h.static_uri('spline', 'icons/folder-open-document-text.png')}" alt="">
26             Thread
27         </th>
28         <th class="stats">Posts</th>
29     </tr>
30 </thead>
31 <tbody>
32     % for thread in c.threads:
33     <tr>
34         <td class="name"><a href="${url(controller='forum', action='posts', forum_id=c.forum.id, thread_id=thread.id)}">${thread.subject}</a></td>
35         <td class="stats">${thread.post_count}</td>
36     </tr>
37     % endfor
38 </tbody>
39 </table>
40
41 ${forumlib.write_thread_form(c.forum)}