Show access levels and context everywhere!
[zzz-spline-forum.git] / splinext / forum / templates / forum / threads.mako
index 6a63cbc..3eca688 100644 (file)
@@ -1,9 +1,41 @@
 <%inherit file="/base.mako" />
+<%namespace name="forumlib" file="/forum/lib.mako" />
 
 <%def name="title()">${c.forum.name} - Forums</%def>
 
-<ul class="classic-list">
-    % for thread in c.forum.threads:
-    <li><a href="${url(controller='forum', action='posts', forum_id=c.forum.id, thread_id=thread.id)}">${thread.subject}</a></li>
-    % endfor
+<%def name="title_in_page()">
+<ul id="breadcrumbs">
+    <li><a href="${url(controller='forum', action='forums')}">Forums</a></li>
+    <li>${c.forum.name}</li>
+</ul>
+</%def>
+
+<h1>Threads</h1>
+<ul class="forum-hierarchy">
+    <li>
+        In forum: <strong><img src="${h.static_uri('spline', 'icons/folders-stack.png')}" alt=""> ${c.forum.name}</strong>
+        ${forumlib.forum_access_level(c.forum)}
+    </li>
 </ul>
+
+<table class="forum-list striped-rows">
+<thead>
+    <tr class="header-row">
+        <th class="name">
+            <img src="${h.static_uri('spline', 'icons/folder-open-document-text.png')}" alt="">
+            Thread
+        </th>
+        <th class="stats">Posts</th>
+    </tr>
+</thead>
+<tbody>
+    % for thread in c.threads:
+    <tr>
+        <td class="name"><a href="${url(controller='forum', action='posts', forum_id=c.forum.id, thread_id=thread.id)}">${thread.subject}</a></td>
+        <td class="stats">${thread.post_count}</td>
+    </tr>
+    % endfor
+</tbody>
+</table>
+
+${forumlib.write_thread_form(c.forum)}