Merge branch 'master' of ssh://git.onelab.eu/git/myslice
[myslice.git] / portal / views.py
index 167f324..8194ed8 100644 (file)
@@ -28,7 +28,7 @@ from django.shortcuts           import render
 from django.template.loader     import render_to_string
 
 from unfold.loginrequired       import FreeAccessView
-from ui.topmenu                 import topmenu_items, the_user
+from ui.topmenu                 import topmenu_items_live, the_user
 
 from portal.event               import Event
 # presview is put in observation for now
@@ -62,13 +62,13 @@ class PresViewView(FreeAccessView):
         context = super(PresViewView, self).get_context_data(**kwargs)
 
         #context['ALL_STATIC'] = "all_static"
-        context['unfold1_main'] = pres_view.render(self.request)
+        context['unfold_main'] = pres_view.render(self.request)
 
         # XXX This is repeated in all pages
         # more general variables expected in the template
         context['title'] = 'Test view that combines various plugins'
         # the menu items on the top
-        context['topmenu_items'] = topmenu_items('PresView', self.request)
+        context['topmenu_items'] = topmenu_items_live('PresView', page)
         # so we can sho who is logged
         context['username'] = the_user(self.request)
 
@@ -393,7 +393,7 @@ class ValidatePendingView(FreeAccessView):
         # more general variables expected in the template
         context['title'] = 'Test view that combines various plugins'
         # the menu items on the top
-        context['topmenu_items'] = topmenu_items('Validation', self.request
+        context['topmenu_items'] = topmenu_items_live('Validation', page
         # so we can sho who is logged
         context['username'] = the_user(self.request)