From 3e9456eb438e2ce529eb6100170bc88de706eb2e Mon Sep 17 00:00:00 2001 From: Eevee Date: Mon, 17 May 2010 21:20:10 -0700 Subject: [PATCH 1/1] Stub out some real forum display stuff. --- splinext/forum/controllers/forum.py | 4 +++- splinext/forum/templates/forum/forums.mako | 8 +++++--- splinext/forum/templates/forum/posts.mako | 8 +++++--- splinext/forum/templates/forum/threads.mako | 10 ++++++---- 4 files changed, 19 insertions(+), 11 deletions(-) diff --git a/splinext/forum/controllers/forum.py b/splinext/forum/controllers/forum.py index 77e3fe4..93eaed4 100644 --- a/splinext/forum/controllers/forum.py +++ b/splinext/forum/controllers/forum.py @@ -25,6 +25,8 @@ class ForumController(BaseController): except NoResultFound: abort(404) + c.threads = c.forum.threads + return render('/forum/threads.mako') def posts(self, forum_id, thread_id): @@ -34,4 +36,4 @@ class ForumController(BaseController): except NoResultFound: abort(404) - return render('/forum/threads.mako') + return render('/forum/posts.mako') diff --git a/splinext/forum/templates/forum/forums.mako b/splinext/forum/templates/forum/forums.mako index 37c5770..24d59a8 100644 --- a/splinext/forum/templates/forum/forums.mako +++ b/splinext/forum/templates/forum/forums.mako @@ -2,8 +2,10 @@ <%def name="title()">Forums -