projects
/
zzz-spline-forum.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9322a3b
)
Stub out some real forum display stuff.
author
Eevee
<git@veekun.com>
Tue, 18 May 2010 04:20:10 +0000
(21:20 -0700)
committer
Eevee
<git@veekun.com>
Tue, 18 May 2010 04:20:10 +0000
(21:20 -0700)
splinext/forum/controllers/forum.py
patch
|
blob
|
history
splinext/forum/templates/forum/forums.mako
patch
|
blob
|
history
splinext/forum/templates/forum/posts.mako
patch
|
blob
|
history
splinext/forum/templates/forum/threads.mako
patch
|
blob
|
history
diff --git
a/splinext/forum/controllers/forum.py
b/splinext/forum/controllers/forum.py
index
77e3fe4
..
93eaed4
100644
(file)
--- a/
splinext/forum/controllers/forum.py
+++ b/
splinext/forum/controllers/forum.py
@@
-25,6
+25,8
@@
class ForumController(BaseController):
except NoResultFound:
abort(404)
except NoResultFound:
abort(404)
+ c.threads = c.forum.threads
+
return render('/forum/threads.mako')
def posts(self, forum_id, thread_id):
return render('/forum/threads.mako')
def posts(self, forum_id, thread_id):
@@
-34,4
+36,4
@@
class ForumController(BaseController):
except NoResultFound:
abort(404)
except NoResultFound:
abort(404)
- return render('/forum/
thread
s.mako')
+ return render('/forum/
post
s.mako')
diff --git
a/splinext/forum/templates/forum/forums.mako
b/splinext/forum/templates/forum/forums.mako
index
37c5770
..
24d59a8
100644
(file)
--- a/
splinext/forum/templates/forum/forums.mako
+++ b/
splinext/forum/templates/forum/forums.mako
@@
-2,8
+2,10
@@
<%def name="title()">Forums</%def>
<%def name="title()">Forums</%def>
-<
ul class="classic-list"
>
+<
table
>
% for forum in c.forums:
% 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
% endfor
-</
ul
>
+</
table
>
diff --git
a/splinext/forum/templates/forum/posts.mako
b/splinext/forum/templates/forum/posts.mako
index
f7eca9c
..
19aac8a
100644
(file)
--- a/
splinext/forum/templates/forum/posts.mako
+++ b/
splinext/forum/templates/forum/posts.mako
@@
-2,8
+2,10
@@
<%def name="title()">${c.thread.subject} - ${c.thread.forum.name} - Forums</%def>
<%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:
% for post in c.thread.posts:
- <li><blockquote>${post.content}</blockquote></li>
+ <div class="forum-post">
+ <div class="content">${post.content}</div>
+ </div>
% endfor
% endfor
-</
ul
>
+</
div
>
diff --git
a/splinext/forum/templates/forum/threads.mako
b/splinext/forum/templates/forum/threads.mako
index
6a63cbc
..
21468ed
100644
(file)
--- a/
splinext/forum/templates/forum/threads.mako
+++ b/
splinext/forum/templates/forum/threads.mako
@@
-2,8
+2,10
@@
<%def name="title()">${c.forum.name} - Forums</%def>
<%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
% endfor
-</
ul
>
+</
table
>