mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Inventory breadcrumb
Inventory name is now clickable, navigating back to the top of the tree. 'All' has been removed.
This commit is contained in:
@@ -501,7 +501,7 @@ function InventoriesEdit ($log, $scope, $location, $routeParams, $compile, Gener
|
|||||||
ClearScope();
|
ClearScope();
|
||||||
|
|
||||||
$scope.group_breadcrumbs = [{
|
$scope.group_breadcrumbs = [{
|
||||||
name: 'All',
|
name: '',
|
||||||
id: 0,
|
id: 0,
|
||||||
description: '',
|
description: '',
|
||||||
show: true,
|
show: true,
|
||||||
@@ -512,6 +512,8 @@ function InventoriesEdit ($log, $scope, $location, $routeParams, $compile, Gener
|
|||||||
show_failures: false
|
show_failures: false
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
/**/
|
||||||
|
|
||||||
$scope.refreshHostsOnGroupRefresh = false;
|
$scope.refreshHostsOnGroupRefresh = false;
|
||||||
$scope.selected_group_id = null;
|
$scope.selected_group_id = null;
|
||||||
|
|
||||||
@@ -566,10 +568,11 @@ function InventoriesEdit ($log, $scope, $location, $routeParams, $compile, Gener
|
|||||||
$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: '{{ inventory.name }}'
|
||||||
});
|
});*/
|
||||||
|
$scope.group_breadcrumbs[0].name = $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="">{{ 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