X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=myslice%2Fviewutils.py;h=937fa9bdb545a2633ab53ef5cacc248104720d63;hb=8fa475745bff5a615bc57869178ecab3e9628225;hp=99d74d29da2c52abf64862df3dffba35f7eef176;hpb=9c80e89622704e2b9fbe4c59c766fea5a92848a3;p=myslice.git diff --git a/myslice/viewutils.py b/myslice/viewutils.py index 99d74d29..937fa9bd 100644 --- a/myslice/viewutils.py +++ b/myslice/viewutils.py @@ -3,12 +3,11 @@ from copy import deepcopy standard_topmenu_items = [ - { 'label':'Tab', 'href': '/tab/'}, - { 'label':'Scroll', 'href': '/scroll/'}, - { 'label':'Slice', 'href': '/slice/'}, - { 'label':'Plugin', 'href': '/plugin/'}, - { 'label':'Dashboard', 'href': '/dashboard/'}, - { 'label':'Hazelnut', 'href': '/hazelnut/'}, +# { 'label':'Tab', 'href': '/tab/'}, +# { 'label':'Scroll', 'href': '/scroll/'}, +# { 'label':'One Plugin', 'href': '/plugin/'}, + { 'label':'Dashboard', 'href': '/portal/dashboard/'}, + { 'label':'Slice', 'href': '/slice/'}, ] #login_out_items = { False: { 'label':'Login', 'href':'/login/'}, @@ -17,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] )