diff ygroup/views.py @ 1045:5d208c3321ce

First stab at V3 design. WIP.
author Brian Neal <bgneal@gmail.com>
date Sun, 07 Feb 2016 20:43:42 -0600
parents ee87ea74d46b
children db8f5b3204b7
line wrap: on
line diff
--- a/ygroup/views.py	Fri Jan 15 21:41:24 2016 -0600
+++ b/ygroup/views.py	Sun Feb 07 20:43:42 2016 -0600
@@ -20,6 +20,12 @@
     """
     model = Thread
     paginate_by = THREADS_PER_PAGE
+    template_name = 'ygroup/v3/thread_list.html'
+
+    def get_context_data(self, **kwargs):
+        context = super(ThreadIndexView, self).get_context_data(**kwargs)
+        context['V3_DESIGN'] = True
+        return context
 
     def get_paginator(self, queryset, per_page, **kwargs):
         """
@@ -35,7 +41,7 @@
 
     """
     context_object_name = "post_list"
-    template_name = "ygroup/thread.html"
+    template_name = "ygroup/v3/thread.html"
     paginate_by = POSTS_PER_PAGE
 
     def get_queryset(self):
@@ -45,6 +51,7 @@
     def get_context_data(self, **kwargs):
         context = super(ThreadView, self).get_context_data(**kwargs)
         context['thread'] = self.thread
+        context['V3_DESIGN'] = True
         return context
 
     def get_paginator(self, queryset, per_page, **kwargs):