X-Git-Url: http://git.veekun.com/zzz-spline-forum.git/blobdiff_plain/0bdf4461e31fce365e9fbc2e0784e634d2431a0e..be07212348141269cd4c5f1544b9a920a6abbfff:/splinext/forum/templates/forum/lib.mako diff --git a/splinext/forum/templates/forum/lib.mako b/splinext/forum/templates/forum/lib.mako index 8a1893d..fd2c073 100644 --- a/splinext/forum/templates/forum/lib.mako +++ b/splinext/forum/templates/forum/lib.mako @@ -1,6 +1,46 @@ <%namespace name="lib" file="/lib.mako" /> <%namespace name="userlib" file="/users/lib.mako" /> +<%def name="forum_access_level(forum)"> +% if forum.access_level != 'normal': +
+ % if forum.access_level == 'soapbox': + Soapbox: Regular users can't start new threads. + % elif forum.access_level == 'archive': + Archive: No more posting! + % endif +
+% endif + + +## Prints a little hierarchy of context when viewing a thread +<%def name="hierarchy(forum, thread=None)"> + + + <%def name="posts(posts)">
% for post in posts: @@ -19,7 +59,7 @@
-
${post.content}
+
${post.content | n}
% endfor