fixing breadcrumbs for new inventory page/manage

fixing breadcrumbs to reflect the level of nesting of hte manage page.
This commit is contained in:
Jared Tabor 2015-03-12 11:41:36 -04:00
parent c2b5d27333
commit 9ed89f9622
2 changed files with 7 additions and 7 deletions

View File

@ -722,11 +722,11 @@ export function InventoriesManage ($log, $scope, $location, $routeParams, $compi
$scope.removeInventoryLoaded = $scope.$on('InventoryLoaded', function() {
var e, rows;
LoadBreadCrumbs({
path: $location.path(),
title: '{{ inventory.name }}'
});
$scope.group_breadcrumbs[0].name = $scope.inventory.name;
LoadBreadCrumbs();
// path: $location.path(),
// title: 'All Groups'//'{{ inventory.name }}'
// });
$scope.group_breadcrumbs[0].name = "All Groups"; // $scope.inventory.name;
// Build page breadcrumbs
e = angular.element(document.getElementById('breadcrumbs'));

View File

@ -3,7 +3,7 @@
<ul class="ansible-breadcrumb" id="#breadcrumbs">
<li><a href="#/inventories">Inventories</a></li>
<!-- <li><a href="">{{ inventory.name }}</a></li> -->
<li><a href = "#/inventories/{{inventory.id}}">{{inventory.name}}</a><li>
<li ng-repeat="group_breadcrumb in group_breadcrumbs" ng-class="group_breadcrumb.active_class"><a href="" ng-click="breadcrumbGroupSelect(group_breadcrumb.id)">{{ group_breadcrumb.name }}</a></li>
</ul>
@ -156,4 +156,4 @@
<div ng-include="'/static/partials/logviewer.html'"></div>
</div>
</div>
</div>