updated look and feel of the site
[myslice.git] / myslice / viewutils.py
index 99d74d2..937fa9b 100644 (file)
@@ -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] )