1 <%inherit file="/base.mako" />
2 <%namespace name="forumlib" file="/forum/lib.mako" />
3 <%namespace name="userlib" file="/users/lib.mako" />
5 <%def name="title()">${c.forum.name} - Forums</%def>
7 <%def name="title_in_page()">
9 <li><a href="${url(controller='forum', action='forums')}">Forums</a></li>
10 <li>${c.forum.name}</li>
15 ${forumlib.hierarchy(c.forum)}
17 <table class="forum-list striped-rows">
19 <tr class="header-row">
21 <img src="${h.static_uri('spline', 'icons/folder-open-document-text.png')}" alt="">
24 <th class="stats">Last post</th>
25 <th class="stats">Posts</th>
29 % for thread in c.threads:
31 <td class="name"><a href="${url(controller='forum', action='posts', forum_id=c.forum.id, thread_id=thread.id)}">${thread.subject}</a></td>
32 <td class="last-post">
33 % if thread.last_post:
34 ## XXX should do direct post link
35 <a href="${url(controller='forum', action='posts', forum_id=c.forum.id, thread_id=thread.last_post.thread_id)}">${thread.last_post.posted_time}</a>
36 <br> by <a href="${url(controller='users', action='profile', id=thread.last_post.author.id, name=thread.last_post.author.name)}">${userlib.color_bar(thread.last_post.author)} ${thread.last_post.author.name}</a>
41 <td class="stats">${thread.post_count}</td>
47 ${forumlib.write_thread_form(c.forum)}