Author: gjm
Date: Sun Apr 1 09:17:11 2012
New Revision: 1308049
URL: http://svn.apache.org/viewvc?rev=1308049&view=rev
Log:
Theme code import: Breadcrumbs and context navigation
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=1308049&r1=1308048&r2=1308049&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:17:11 2012
@@ -30,7 +30,7 @@
${select("*[local-name() != 'title']")}
</head></py:match>
- <body>
+ <py:match path="body" once="true" buffer="false"><body>
<div class="container">
<div class="row" style="position:relative;">
<div class="span4">
@@ -76,8 +76,19 @@
</div>
</div>
<div class="row" style="background-color:#f6f6f6;">
- <div class="span9"><a href="#">Breadcrumb</a> > Dashboard</div>
- <div class="span3" style="text-align:right;"><a href="#">Custom Query</a> <a
href="#">Reports</a></div>
+ <div class="span9" py:choose="">
+ <xi:include py:when="value_of('resourcepath_template')"
+ href="${resourcepath_template}" />
+ <py:otherwise> </py:otherwise>
+ </div>
+ <div class="span3" style="text-align:right;">
+ <py:for py:if="chrome.ctxtnav"
+ py:with="max_idx = len(chrome.ctxtnav) - 1"
+ each="idx, item in enumerate(chrome.ctxtnav)">
+ $item
+ <py:if test="idx < max_idx"> </py:if>
+ </py:for>
+ </div>
</div>
<br/>
<div class="row">
@@ -258,4 +269,4 @@
-</body></html>
+</body></py:match></html>
|