Show access levels and context everywhere!
[zzz-spline-forum.git] / splinext / forum / templates / forum / forums.mako
index 21c0289..6aa4be3 100644 (file)
@@ -1,4 +1,5 @@
 <%inherit file="/base.mako" />
+<%namespace name="forumlib" file="/forum/lib.mako" />
 
 <%def name="title()">Forums</%def>
 
@@ -6,7 +7,10 @@
 <table class="forum-list striped-rows">
 <thead>
     <tr class="header-row">
-        <th class="name">Forum</th>
+        <th class="name">
+            <img src="${h.static_uri('spline', 'icons/folders-stack.png')}" alt="">
+            Forum
+        </th>
         <th class="stats">Volume</th>
         <th class="stats">Activity</th>
     </tr>
 <tbody>
     % for forum in c.forums:
     <tr>
-        <td class="name"><a href="${url(controller='forum', action='threads', forum_id=forum.id)}">${forum.name}</a></td>
+        <td class="name">
+            <a href="${url(controller='forum', action='threads', forum_id=forum.id)}">${forum.name}</a>
+            ${forumlib.forum_access_level(forum)}
+        </td>
         <td class="stats">xxx</td>
         <td class="stats">xxx</th>
     </tr>