X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=myslice%2Fviewutils.py;h=c6067f2809fc34c981d3e1690ebe55cb8c98a50b;hp=9be8941a15f2314e44054f3c5b789c0285429bfb;hb=f1df689da513b1523ce89f0ba32728592999c1f2;hpb=d4026f144d75beda0142ba35011c4323704745b4 diff --git a/myslice/viewutils.py b/myslice/viewutils.py index 9be8941a..c6067f28 100644 --- a/myslice/viewutils.py +++ b/myslice/viewutils.py @@ -20,13 +20,12 @@ def topmenu_items (current,request=None): result=deepcopy(standard_topmenu_items) result.append({'label':'My Account', 'href': '/portal/account/'}) result.append({ 'label':'Request a slice', 'href': '/portal/slice_request/'}) - result.append({'label':'Contact Support', 'href': '/portal/contact/'}) else: result = [] result.append({'label':'Home', 'href': '/login'}) result.append({ 'label':'Register', 'href': '/portal/user/register/'}) - result.append({'label':'Contact Support', 'href': '/portal/contact/'}) result.append({'label':'Platforms', 'href': '/portal/platforms/'}) + result.append({'label':'Contact Support', 'href': '/portal/contact/'}) for d in result: #if d['label'].lower()find(current)>=0: d['is_active']=True if d['label'] == current: d['is_active']=True