incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1308051 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
Date Sun, 01 Apr 2012 09:19:11 GMT
Author: gjm
Date: Sun Apr  1 09:19:11 2012
New Revision: 1308051

URL: http://svn.apache.org/viewvc?rev=1308051&view=rev
Log:
Theme code import: Added metanav items under divider in top-right dropdown menu

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=1308051&r1=1308050&r2=1308051&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html Sun
Apr  1 09:19:11 2012
@@ -61,16 +61,26 @@
         </div>
         <div class="span4"><a href="#" class="btn">Create Ticket</a></div>
         <div class="4">
-          <ul py:if="chrome.nav.mainnav" class="nav nav-tabs pull-right"
+          <ul py:if="chrome.nav.mainnav or chrome.nav.metanav"
+              class="nav nav-tabs pull-right"
               py:with="mainnav_show = ('wiki', 'tickets', 'browser')">
             <!-- TODO: Parameterize visible mainnav items in trac.ini -->
-            <li py:for="idx, item in enumerate(i for i in chrome.nav.mainnav if i.name
in mainnav_show or i.active)" 
+            <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 or i.active)" 
                 class="${classes(first_last(idx, chrome.nav.mainnav), active=item.active)}">${item.label}</li>
             <li class="dropdown">
               <a class="dropdown-toggle" data-toggle="dropdown" href="#">Apps<b
class="caret"></b></a>
               <ul class="dropdown-menu">
-                <li py:for="idx, item in enumerate(i for i in chrome.nav.mainnav if i.name
not in mainnav_show and not i.active)" 
+                <li py:if="chrome.nav.mainnav"
+                    py:for="idx, item in enumerate(i for i in chrome.nav.mainnav if i.name
not in mainnav_show and not i.active)" 
                     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:for="idx, item in enumerate(chrome.nav.metanav)"
+                      class="${classes(first_last(idx, chrome.nav.metanav), active=item.active)}">
+                    ${item.label}
+                  </li>
+                </py:if>
               </ul>
             </li>
           </ul>



Mime
View raw message