From 00a935f38530f3fb12fc1f0d949b00f4fa663e9b Mon Sep 17 00:00:00 2001 From: Eevee Date: Sat, 5 Jun 2010 13:33:32 -0700 Subject: [PATCH] Fix page titles; add breadcrumbs. --- splinext/forum/templates/forum/posts.mako | 15 ++++++++++++++- splinext/forum/templates/forum/threads.mako | 7 +++++++ 2 files changed, 21 insertions(+), 1 deletion(-) 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: -- 2.7.4