Permalink
Browse files

Updating wiki breadcrumb to use bootstrap breadcrumb

  • Loading branch information...
1 parent 7851f18 commit 5ec4c9b7ea1de3e96d00e02eece65a8b1e0013cd Ben Lancaster committed with adiroiban Jun 26, 2012
Showing with 19 additions and 0 deletions.
  1. +4 −0 htdocs/css/patch.css
  2. +15 −0 templates/wiki_page_path.html
View
@@ -63,3 +63,7 @@ form input {
#topsearch label {
display: inherit;
}
+
+ul.breadcrumb {
+ float: left;
+}
@@ -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>

0 comments on commit 5ec4c9b

Please sign in to comment.