diff MoinMoin/themes/__init__.py @ 2043:423d8d791cc9

Fix for Issue#291, home link now coloured as should be
author sharky93 <rishabhr123@gmail.com>
date Fri, 22 Mar 2013 03:04:55 +0530
parents 791bdedb0c20
children 089f0f9c21d6 ad303592c64c
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Wed Mar 20 12:42:06 2013 +0100
+++ b/MoinMoin/themes/__init__.py	Fri Mar 22 03:04:55 2013 +0530
@@ -210,8 +210,12 @@
         """
         current = item_name
         # Process config navi_bar
-        items = [(cls, url_for(endpoint, **args), link_text, title)
-                 for cls, endpoint, args, link_text, title in self.cfg.navi_bar]
+        items = []
+        for cls, endpoint, args, link_text, title in self.cfg.navi_bar:
+            if endpoint == "frontend.show_root":
+                endpoint = "frontend.show_item"
+                args['item_name'] = app.cfg.item_root
+            items.append((cls, url_for(endpoint, **args), link_text, title))
 
         # Add user links to wiki links.
         for text in self.user.quicklinks: