except NoResultFound:
abort(404)
+ c.threads = c.forum.threads
+
return render('/forum/threads.mako')
def posts(self, forum_id, thread_id):
except NoResultFound:
abort(404)
- return render('/forum/threads.mako')
+ return render('/forum/posts.mako')
<%def name="title()">Forums</%def>
-<ul class="classic-list">
+<table>
% for forum in c.forums:
- <li><a href="${url(controller='forum', action='threads', forum_id=forum.id)}">${forum.name}</a></li>
+ <tr>
+ <td><a href="${url(controller='forum', action='threads', forum_id=forum.id)}">${forum.name}</a></td>
+ </tr>
% endfor
-</ul>
+</table>
<%def name="title()">${c.thread.subject} - ${c.thread.forum.name} - Forums</%def>
-<ul class="classic-list">
+<div class="forum-post-container">
% for post in c.thread.posts:
- <li><blockquote>${post.content}</blockquote></li>
+ <div class="forum-post">
+ <div class="content">${post.content}</div>
+ </div>
% endfor
-</ul>
+</div>
<%def name="title()">${c.forum.name} - Forums</%def>
-<ul class="classic-list">
- % for thread in c.forum.threads:
- <li><a href="${url(controller='forum', action='posts', forum_id=c.forum.id, thread_id=thread.id)}">${thread.subject}</a></li>
+<table>
+ % for thread in c.threads:
+ <tr>
+ <td><a href="${url(controller='forum', action='posts', forum_id=c.forum.id, thread_id=thread.id)}">${thread.subject}</a></td>
+ </tr>
% endfor
-</ul>
+</table>