<%inherit file="/base.mako" />
+<%namespace name="forumlib" file="/forum/lib.mako" />
-<%def name="title()">${c.thread.subject} - ${c.thread.forum.name} - Forums</%def>
+<%def name="title()">${c.thread.subject} - Forums</%def>
-<div class="forum-post-container">
- % for post in c.thread.posts:
- <div class="forum-post">
- <div class="content">${post.content}</div>
- </div>
- % endfor
-</div>
+<%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>
+
+<h1>Posts</h1>
+<ul class="forum-hierarchy">
+ <li>
+ In forum: <a href="${url(controller='forum', action='threads', forum_id=c.thread.forum.id)}"><img src="${h.static_uri('spline', 'icons/folders-stack.png')}" alt=""> ${c.thread.forum.name}</a>
+ ${forumlib.forum_access_level(c.thread.forum)}
+ </li>
+ <li>
+ In thread: <strong><img src="${h.static_uri('spline', 'icons/folder-open-document-text.png')}" alt=""> ${c.thread.subject}</strong>
+ </li>
+</ul>
+
+% if c.thread.post_count == 0:
+<p>Something terribly bogus has happened; this thread has no posts.</p>
+% else:
+${forumlib.posts(c.thread.posts)}
+% endif
+
+${forumlib.write_post_form(c.thread)}