Mercurial > public > sg101
diff gpp/forums/views.py @ 87:515d1daec811
Forums: added intra-page links for posts. Added last_page variable for topic. Conditionally display reply form using last_page.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 12 Sep 2009 18:45:35 +0000 |
parents | f81226b5e87b |
children | 021492db4aad |
line wrap: on
line diff
--- a/gpp/forums/views.py Sat Sep 05 20:47:08 2009 +0000 +++ b/gpp/forums/views.py Sat Sep 12 18:45:35 2009 +0000 @@ -60,11 +60,13 @@ topic.save() posts = topic.posts.select_related() + last_page = True # TODO return render_to_response('forums/topic.html', { 'forum': topic.forum, 'topic': topic, 'posts': posts, + 'last_page': last_page, 'form': PostForm(), }, context_instance=RequestContext(request))