From: Eevee Date: Sat, 5 Jun 2010 20:33:32 +0000 (-0700) Subject: Fix page titles; add breadcrumbs. X-Git-Tag: veekun-promotions/2010070701~3 X-Git-Url: http://git.veekun.com/zzz-spline-forum.git/commitdiff_plain/00a935f38530f3fb12fc1f0d949b00f4fa663e9b?ds=sidebyside Fix page titles; add breadcrumbs. --- diff --git a/splinext/forum/templates/forum/posts.mako b/splinext/forum/templates/forum/posts.mako index e4d3ffc..24dd875 100644 --- a/splinext/forum/templates/forum/posts.mako +++ b/splinext/forum/templates/forum/posts.mako @@ -1,6 +1,19 @@ <%inherit file="/base.mako" /> -<%def name="title()">${c.thread.subject} - ${c.thread.forum.name} - Forums +<%def name="title()">${c.thread.subject} - Forums + +<%def name="title_in_page()"> + + + +% if c.thread.post_count == 0: +

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

+<% return %> +% endif
% for post in c.thread.posts: diff --git a/splinext/forum/templates/forum/threads.mako b/splinext/forum/templates/forum/threads.mako index a6b3f73..a27d4f1 100644 --- a/splinext/forum/templates/forum/threads.mako +++ b/splinext/forum/templates/forum/threads.mako @@ -2,6 +2,13 @@ <%def name="title()">${c.forum.name} - Forums +<%def name="title_in_page()"> + + + % for thread in c.threads: