incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1419753 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
Date Mon, 10 Dec 2012 20:53:04 GMT
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)}">



Mime
View raw message