Added forum descriptions. #327
[zzz-spline-forum.git] / splinext / forum / templates / forum / threads.mako
index a27d4f1..7df962b 100644 (file)
@@ -1,4 +1,5 @@
 <%inherit file="/base.mako" />
+<%namespace name="forumlib" file="/forum/lib.mako" />
 
 <%def name="title()">${c.forum.name} - Forums</%def>
 
 </ul>
 </%def>
 
-<table>
+<h1>Threads</h1>
+${forumlib.hierarchy(c.forum)}
+
+<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><a href="${url(controller='forum', action='posts', forum_id=c.forum.id, thread_id=thread.id)}">${thread.subject}</a></td>
-        <td>${thread.post_count}</td>
+        <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)}