Commits

g...@13f79535-47bb-0310-9956-ffa450edef68  committed 1603994

removes redundant divider when there are no metanav items to add to dropdown menu - towards #188

  • Participants
  • Parent commits 437551e

Comments (0)

Files changed (1)

File bhtheme/templates/bloodhound_theme.html

                       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)}">