Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating wiki breadcrumb to use bootstrap breadcrumb

  • Loading branch information...
commit 5ec4c9b7ea1de3e96d00e02eece65a8b1e0013cd 1 parent 7851f18
Ben Lancaster authored adiroiban committed
Showing with 19 additions and 0 deletions.
  1. +4 −0 htdocs/css/patch.css
  2. +15 −0 templates/wiki_page_path.html
View
4 htdocs/css/patch.css
@@ -63,3 +63,7 @@ form input {
#topsearch label {
display: inherit;
}
+
+ul.breadcrumb {
+ float: left;
+}
View
15 templates/wiki_page_path.html
@@ -0,0 +1,15 @@
+<ul xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://genshi.edgewall.org/"
+ xmlns:i18n="http://genshi.edgewall.org/i18n"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ class="breadcrumb noprint"
+ py:with="parts = page.name.split('/')">
+ <li><a title="View WikiStart" href="${req.base_url}">${project.name}</a> <span class="divider"> / </span></li>
+ <li><a title="View WikiStart" href="${href.wiki()}">Wiki</a> <span class="divider"> / </span></li>
+ <py:for each="idx, part in enumerate(parts)">
+ <li>
+ <a href="${href.wiki(*parts[:idx + 1])}" title="${_('View %(path)s', path='/'.join(parts[:idx + 1]))}">${part}</a>
+ <span class="divider" py:if="idx != len(parts) - 1"> / </span>
+ </li>
+ </py:for>
+</ul>
Please sign in to comment.
Something went wrong with that request. Please try again.