Skip to content

Commit

Permalink
added branch switching to the breadcrumbs which is much cleaner, for #…
Browse files Browse the repository at this point in the history
…532. thanks @gashcrumb for the idea! :)
  • Loading branch information
jstrachan committed Sep 10, 2013
1 parent 041925b commit 9d843cf
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions hawtio-web/src/main/webapp/app/wiki/html/viewPage.html
Expand Up @@ -2,6 +2,22 @@
<div class="logbar" ng-controller="Wiki.NavBarController">
<div class="wiki logbar-container">
<ul class="nav nav-tabs">
<li ng-show="branches.length" class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"
title="The branch to view">
{{branch || 'branch'}}
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li ng-repeat="otherBranch in branches">
<a ng-href="{{branchLink(otherBranch)}}{{hash}}"
ng-hide="otherBranch === branch"
title="Switch to the {{otherBranch}} branch"
data-placement="bottom">
{{otherBranch}}</a>
</li>
</ul>
</li>
<li ng-repeat="link in breadcrumbs" ng-class='{active : isActive(link.href)}'>
<a ng-href="{{link.href}}{{hash}}">{{link.name}}</a>
</li>
Expand Down Expand Up @@ -43,27 +59,6 @@
data-placement="bottom">
<i class="icon-remove"></i> Delete</a>
</li>
<li class="divider">
</li>
<li ng-show="branches.length" class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"
title="The branch to view">
Branch: {{currentBranch}}
<i class="icon-arrow-right"></i>
<!--
<span class="caret"></span>
-->
</a>
<ul class="dropdown-submenu">
<li ng-repeat="branch in branches">
<a ng-href="{{branchLink(branch)}}"
ng-hide="currentBranch === branch"
title="Switch to the {{branch}} branch"
data-placement="bottom">
{{branch}}</a>
</li>
</ul>
</li>
</ul>
</li>
<li class="pull-right">
Expand Down

0 comments on commit 9d843cf

Please sign in to comment.