Show access levels and context everywhere!
[zzz-spline-forum.git] / splinext / forum / templates / forum / posts.mako
1 <%inherit file="/base.mako" />
2 <%namespace name="forumlib" file="/forum/lib.mako" />
3
4 <%def name="title()">${c.thread.subject} - 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><a href="${url(controller='forum', action='threads', forum_id=c.thread.forum.id)}">${c.thread.forum.name}</a></li>
10     <li>${c.thread.subject}</li>
11 </ul>
12 </%def>
13
14 <h1>Posts</h1>
15 <ul class="forum-hierarchy">
16     <li>
17         In forum: <a href="${url(controller='forum', action='threads', forum_id=c.thread.forum.id)}"><img src="${h.static_uri('spline', 'icons/folders-stack.png')}" alt=""> ${c.thread.forum.name}</a>
18         ${forumlib.forum_access_level(c.thread.forum)}
19     </li>
20     <li>
21         In thread: <strong><img src="${h.static_uri('spline', 'icons/folder-open-document-text.png')}" alt=""> ${c.thread.subject}</strong>
22     </li>
23 </ul>
24
25 % if c.thread.post_count == 0:
26 <p>Something terribly bogus has happened; this thread has no posts.</p>
27 % else:
28 ${forumlib.posts(c.thread.posts)}
29 % endif
30
31 ${forumlib.write_post_form(c.thread)}