Fix page titles; add breadcrumbs.
[zzz-spline-forum.git] / splinext / forum / templates / forum / posts.mako
index e4d3ffc..24dd875 100644 (file)
@@ -1,6 +1,19 @@
 <%inherit file="/base.mako" />
 
-<%def name="title()">${c.thread.subject} - ${c.thread.forum.name} - Forums</%def>
+<%def name="title()">${c.thread.subject} - Forums</%def>
+
+<%def name="title_in_page()">
+<ul id="breadcrumbs">
+    <li><a href="${url(controller='forum', action='forums')}">Forums</a></li>
+    <li><a href="${url(controller='forum', action='threads', forum_id=c.thread.forum.id)}">${c.thread.forum.name}</a></li>
+    <li>${c.thread.subject}</li>
+</ul>
+</%def>
+
+% if c.thread.post_count == 0:
+<p>Something terribly bogus has happened; this thread has no posts.</p>
+<% return %>
+% endif
 
 <div class="forum-post-container">
     % for post in c.thread.posts: