portal.dashboard: working
[myslice.git] / myslice / viewutils.py
index 669c4ca..2b5ab86 100644 (file)
@@ -3,10 +3,10 @@
 from copy import deepcopy
 
 standard_topmenu_items = [ 
-    { 'label':'Tab', 'href': '/tab/'},
-    { 'label':'Scroll', 'href': '/scroll/'},
-    { 'label':'Plugin', 'href': '/plugin/'},
-    { 'label':'Dashboard', 'href': '/dashboard/'},
+#    { 'label':'Tab', 'href': '/tab/'},
+#    { 'label':'Scroll', 'href': '/scroll/'},
+    { 'label':'One Plugin', 'href': '/plugin/'},
+    { 'label':'Dashboard', 'href': '/portal/dashboard/'},
     { 'label':'Slice', 'href': '/slice/'},
     ]
 
@@ -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] )