Wrap forum and thread lists in standard tables.
[zzz-spline-forum.git] / splinext / forum / templates / forum / posts.mako
1 <%inherit file="/base.mako" />
2
3 <%def name="title()">${c.thread.subject} - Forums</%def>
4
5 <%def name="title_in_page()">
6 <ul id="breadcrumbs">
7     <li><a href="${url(controller='forum', action='forums')}">Forums</a></li>
8     <li><a href="${url(controller='forum', action='threads', forum_id=c.thread.forum.id)}">${c.thread.forum.name}</a></li>
9     <li>${c.thread.subject}</li>
10 </ul>
11 </%def>
12
13 % if c.thread.post_count == 0:
14 <p>Something terribly bogus has happened; this thread has no posts.</p>
15 <% return %>
16 % endif
17
18 <div class="forum-post-container">
19     % for post in c.thread.posts:
20     <div class="forum-post">
21         <div class="author">
22             ${post.author.name}
23         </div>
24         <div class="meta">
25             <time>${post.posted_time}</time>
26         </div>
27         <div class="content">${post.content}</div>
28     </div>
29     % endfor
30 </div>