X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=myslice%2Fviewutils.py;h=2b5ab8624d736cd99404151cc300933635355bca;hb=18710ca42c0eb6c72ab5ce2449a9676dd6d491bd;hp=669c4ca487984e1ea73263be042ef61e5c3a9dfa;hpb=72e1b6fd2be568712a4be6eb5805e0f686030ea3;p=myslice.git diff --git a/myslice/viewutils.py b/myslice/viewutils.py index 669c4ca4..2b5ab862 100644 --- a/myslice/viewutils.py +++ b/myslice/viewutils.py @@ -3,10 +3,10 @@ from copy import deepcopy standard_topmenu_items = [ - { 'label':'Tab', 'href': '/tab/'}, - { 'label':'Scroll', 'href': '/scroll/'}, - { 'label':'Plugin', 'href': '/plugin/'}, - { 'label':'Dashboard', 'href': '/dashboard/'}, +# { 'label':'Tab', 'href': '/tab/'}, +# { 'label':'Scroll', 'href': '/scroll/'}, + { 'label':'One Plugin', 'href': '/plugin/'}, + { 'label':'Dashboard', 'href': '/portal/dashboard/'}, { 'label':'Slice', 'href': '/slice/'}, ] @@ -16,7 +16,7 @@ standard_topmenu_items = [ def topmenu_items (current,request=None): result=deepcopy(standard_topmenu_items) for d in result: - if d['label'].lower().find(current)>=0: d['active']=True + if d['label'].lower().find(current)>=0: d['is_active']=True if not request: return result has_user=request.user.is_authenticated() # result.append (login_out_items [ has_user] )