Author: gjm
Date: Mon Dec 10 20:47:37 2012
New Revision: 1419751
URL: http://svn.apache.org/viewvc?rev=1419751&view=rev
Log:
remove redundant metanav items from mainnav dropdown - towards #188 (from
olemis)
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
URL:
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html?rev=1419751&r1=1419750&r2=1419751&view=diff
==============================================================================
---
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
(original)
+++
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
Mon Dec 10 20:47:37 2012
@@ -198,7 +198,8 @@
<ul py:if="chrome.nav.mainnav or chrome.nav.metanav"
class="nav nav-tabs pull-right"
id="mainnav"
- py:with="mainnav_show = ('wiki', 'tickets', 'browser')">
+ py:with="mainnav_show = ('wiki', 'tickets', 'browser');
+ metanav_hide = ('login', 'logout', 'prefs', 'help',
'about')">
<!-- TODO: Parameterize visible mainnav items in trac.ini -->
<li py:if="chrome.nav.mainnav"
py:for="idx, item in enumerate(i for i in chrome.nav.mainnav
if i.name in mainnav_show)"
@@ -212,6 +213,7 @@
<py:if test="chrome.nav.metanav">
<li class="divider"></li>
<li py:for="idx, item in enumerate(chrome.nav.metanav)"
+ py:if="item.name not in metanav_hide"
class="${classes(first_last(idx, chrome.nav.metanav),
active=item.active)}">
${item.label}
</li>