comparison 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
comparison
equal deleted inserted replaced
2040:d47f2665684a 2043:423d8d791cc9
208 :rtype: list 208 :rtype: list
209 :returns: list of tuples (css_class, url, link_text, title) 209 :returns: list of tuples (css_class, url, link_text, title)
210 """ 210 """
211 current = item_name 211 current = item_name
212 # Process config navi_bar 212 # Process config navi_bar
213 items = [(cls, url_for(endpoint, **args), link_text, title) 213 items = []
214 for cls, endpoint, args, link_text, title in self.cfg.navi_bar] 214 for cls, endpoint, args, link_text, title in self.cfg.navi_bar:
215 if endpoint == "frontend.show_root":
216 endpoint = "frontend.show_item"
217 args['item_name'] = app.cfg.item_root
218 items.append((cls, url_for(endpoint, **args), link_text, title))
215 219
216 # Add user links to wiki links. 220 # Add user links to wiki links.
217 for text in self.user.quicklinks: 221 for text in self.user.quicklinks:
218 url, link_text, title = self.split_navilink(text) 222 url, link_text, title = self.split_navilink(text)
219 items.append(('userlink', url, link_text, title)) 223 items.append(('userlink', url, link_text, title))