X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=myslice%2Fviewutils.py;h=b62e1a477929f3cc1be94d455d3aede4e6f35431;hp=3f1da63dd1f884df1dc3e6cda8de4cde60df1010;hb=129b1502b5188c74f48e82da6c20c3b63350936c;hpb=af0331622e9823245720bd576bf4aaeb5343147d diff --git a/myslice/viewutils.py b/myslice/viewutils.py index 3f1da63d..b62e1a47 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/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