X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=myslice%2Fviewutils.py;h=37a7d63628fe82a19dd34a00d891b783116268f4;hb=3cdaf171ec6d912913789ab0eb1ee8106a315957;hp=2073ab48594f8c16c2db5e2f1f2077c39814e7c9;hpb=a2ae7986853adb271361957a08effd0c9537e7a3;p=myslice.git diff --git a/myslice/viewutils.py b/myslice/viewutils.py index 2073ab48..37a7d636 100644 --- a/myslice/viewutils.py +++ b/myslice/viewutils.py @@ -3,11 +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':'Tab', 'href': '/tab/'}, +# { 'label':'Scroll', 'href': '/scroll/'}, + { 'label':'One Plugin', 'href': '/plugin/'}, { 'label':'Dashboard', 'href': '/dashboard/'}, + { 'label':'Slice', 'href': '/slice/'}, ] #login_out_items = { False: { 'label':'Login', 'href':'/login/'}, @@ -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] )