X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fviews.py;h=8194ed88b7ef75f6c185e4ace19a34fc84430cd1;hb=8157d49c91fa32ef116e75a5d52d9a4512d4bca5;hp=d454502e417c2e8a92076086300a2af5589b241d;hpb=d1197c134b70bda643a752bdaf891190cb5a15e7;p=myslice.git diff --git a/portal/views.py b/portal/views.py index d454502e..8194ed88 100644 --- a/portal/views.py +++ b/portal/views.py @@ -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 @@ -68,7 +68,7 @@ class PresViewView(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('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)