Author: gjm
Date: Mon Dec 10 20:53:03 2012
New Revision: 1419753
URL: http://svn.apache.org/viewvc?rev=1419753&view=rev
Log:
removes redundant divider when there are no metanav items to add to dropdown
menu - towards #188
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=1419753&r1=1419752&r2=1419753&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:53:03 2012
@@ -211,7 +211,8 @@
py:for="idx, item in enumerate(i for i in
chrome.nav.mainnav if i.name not in mainnav_show)"
class="${classes(first_last(idx, chrome.nav.mainnav),
active=item.active)}">${item.label}</li>
<py:if test="chrome.nav.metanav">
- <li class="divider"></li>
+ <li py:if="len([i for i in chrome.nav.metanav if i.name
not in metanav_hide])"
+ 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)}">