changeset 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 d47f2665684a
children 0ad73056b518
files MoinMoin/themes/__init__.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
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: