diff forums/views/main.py @ 1161:a60aabced346

Converting forums to V3 design.
author Brian Neal <bgneal@gmail.com>
date Tue, 07 Feb 2017 20:44:00 -0600
parents e1c03da72818
children 68811c583bfb
line wrap: on
line diff
--- a/forums/views/main.py	Tue Jan 24 19:22:29 2017 -0600
+++ b/forums/views/main.py	Tue Feb 07 20:44:00 2017 -0600
@@ -110,6 +110,7 @@
     return render(request, 'forums/index.html', {
         'cats': cats,
         'feeds': feeds,
+        'V3_DESIGN': True,
         })
 
 
@@ -140,17 +141,14 @@
     get_topic_unread_status(forum, page.object_list, request.user)
     attach_topic_page_ranges(page.object_list)
 
-    # 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(forum, request.user)
 
     return render(request, 'forums/forum_index.html', {
         'forum': forum,
         'feed': feed,
         'page': page,
-        'page_nav': page_nav,
         'can_moderate': can_moderate,
+        'V3_DESIGN': True,
         })