mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 12:20:45 -03:30
fixing breadcrumbs for new inventory page/manage
fixing breadcrumbs to reflect the level of nesting of hte manage page.
This commit is contained in:
parent
c2b5d27333
commit
9ed89f9622
@ -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'));
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user