X-Git-Url: http://git.veekun.com/zzz-spline-forum.git/blobdiff_plain/3e9456eb438e2ce529eb6100170bc88de706eb2e..3d22d513717cc7d52fc07eeece5cf81fb6ec6ee9:/splinext/forum/templates/forum/posts.mako diff --git a/splinext/forum/templates/forum/posts.mako b/splinext/forum/templates/forum/posts.mako index 19aac8a..a0f83e5 100644 --- a/splinext/forum/templates/forum/posts.mako +++ b/splinext/forum/templates/forum/posts.mako @@ -1,11 +1,31 @@ <%inherit file="/base.mako" /> +<%namespace name="forumlib" file="/forum/lib.mako" /> -<%def name="title()">${c.thread.subject} - ${c.thread.forum.name} - Forums +<%def name="title()">${c.thread.subject} - Forums -
- % for post in c.thread.posts: -
-
${post.content}
-
- % endfor -
+<%def name="title_in_page()"> + + + +

Posts

+ + +% if c.thread.post_count == 0: +

Something terribly bogus has happened; this thread has no posts.

+% else: +${forumlib.posts(c.thread.posts)} +% endif + +${forumlib.write_post_form(c.thread)}