Stub out some real forum display stuff.
authorEevee <git@veekun.com>
Tue, 18 May 2010 04:20:10 +0000 (21:20 -0700)
committerEevee <git@veekun.com>
Tue, 18 May 2010 04:20:10 +0000 (21:20 -0700)
splinext/forum/controllers/forum.py
splinext/forum/templates/forum/forums.mako
splinext/forum/templates/forum/posts.mako
splinext/forum/templates/forum/threads.mako

index 77e3fe4..93eaed4 100644 (file)
@@ -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')
index 37c5770..24d59a8 100644 (file)
@@ -2,8 +2,10 @@
 
 <%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>
index f7eca9c..19aac8a 100644 (file)
@@ -2,8 +2,10 @@
 
 <%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>
index 6a63cbc..21468ed 100644 (file)
@@ -2,8 +2,10 @@
 
 <%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>