Mercurial > public > sg101
diff forums/views/main.py @ 1164:68811c583bfb
WIP forum to V3 design commit.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 12 Apr 2017 20:26:45 -0500 |
parents | a60aabced346 |
children | 130ac1e98cf4 |
line wrap: on
line diff
--- a/forums/views/main.py Tue Mar 07 19:47:18 2017 -0600 +++ b/forums/views/main.py Wed Apr 12 20:26:45 2017 -0500 @@ -204,9 +204,6 @@ visit_time = last_post_on_page.creation_date _update_last_visit(request.user, topic, visit_time) - # we do this for the template since it is rendered twice - page_nav = render_to_string('forums/pagination.html', {'page': page}) - can_moderate = perms.can_moderate(topic.forum, request.user) can_reply = request.user.is_authenticated() and ( @@ -222,13 +219,13 @@ 'forum': topic.forum, 'topic': topic, 'page': page, - 'page_nav': page_nav, 'last_page': last_page, 'can_moderate': can_moderate, 'can_reply': can_reply, 'form': NewPostForm(initial={'topic_id': topic.id}), 'is_favorite': is_favorite, 'is_subscribed': is_subscribed, + 'V3_DESIGN': True, })