mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02: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:
@@ -722,11 +722,11 @@ export function InventoriesManage ($log, $scope, $location, $routeParams, $compi
|
|||||||
$scope.removeInventoryLoaded = $scope.$on('InventoryLoaded', function() {
|
$scope.removeInventoryLoaded = $scope.$on('InventoryLoaded', function() {
|
||||||
var e, rows;
|
var e, rows;
|
||||||
|
|
||||||
LoadBreadCrumbs({
|
LoadBreadCrumbs();
|
||||||
path: $location.path(),
|
// path: $location.path(),
|
||||||
title: '{{ inventory.name }}'
|
// title: 'All Groups'//'{{ inventory.name }}'
|
||||||
});
|
// });
|
||||||
$scope.group_breadcrumbs[0].name = $scope.inventory.name;
|
$scope.group_breadcrumbs[0].name = "All Groups"; // $scope.inventory.name;
|
||||||
|
|
||||||
// Build page breadcrumbs
|
// Build page breadcrumbs
|
||||||
e = angular.element(document.getElementById('breadcrumbs'));
|
e = angular.element(document.getElementById('breadcrumbs'));
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<ul class="ansible-breadcrumb" id="#breadcrumbs">
|
<ul class="ansible-breadcrumb" id="#breadcrumbs">
|
||||||
<li><a href="#/inventories">Inventories</a></li>
|
<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>
|
<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>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user