mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 22:16:00 -03:30
link to manage page from inv list
This commit is contained in:
@@ -730,11 +730,11 @@ export function InventoriesManage ($log, $scope, $location, $routeParams, $compi
|
||||
$scope.removeInventoryLoaded = $scope.$on('InventoryLoaded', function() {
|
||||
var e, rows;
|
||||
|
||||
LoadBreadCrumbs();
|
||||
// path: $location.path(),
|
||||
// title: 'All Groups'//'{{ inventory.name }}'
|
||||
// });
|
||||
$scope.group_breadcrumbs[0].name = "All Groups"; // $scope.inventory.name;
|
||||
LoadBreadCrumbs({
|
||||
path: $location.path(),
|
||||
title: '{{ inventory.name }}'
|
||||
});
|
||||
$scope.group_breadcrumbs[0].name = $scope.inventory.name;
|
||||
|
||||
// Build page breadcrumbs
|
||||
e = angular.element(document.getElementById('breadcrumbs'));
|
||||
|
||||
@@ -22,15 +22,6 @@ export default
|
||||
well: true,
|
||||
|
||||
actions: {
|
||||
manage: {
|
||||
'class': "btn-primary btn-xs activity-btn",
|
||||
ngClick: "manageInventory()",
|
||||
awToolTip: "Manage Inventory",
|
||||
dataPlacement: "top",
|
||||
icon: "icon-sitemap",
|
||||
mode: 'edit',
|
||||
iconSize: 'large'
|
||||
},
|
||||
stream: {
|
||||
'class': "btn-primary btn-xs activity-btn",
|
||||
ngClick: "showActivity()",
|
||||
|
||||
@@ -49,7 +49,7 @@ export default
|
||||
label: 'Name',
|
||||
columnClass: 'col-md-4 col-sm-6 col-xs-6',
|
||||
modalColumnClass: 'col-md-8',
|
||||
linkTo: '/#/inventories/{{inventory.id}}'
|
||||
linkTo: '/#/inventories/{{inventory.id}}/manage'
|
||||
},
|
||||
organization: {
|
||||
label: 'Organization',
|
||||
@@ -97,19 +97,6 @@ export default
|
||||
},
|
||||
|
||||
fieldActions: {
|
||||
// failed_hosts: {
|
||||
// //label: 'Failures',
|
||||
// ngHref: "{{ inventory.failed_hosts_link }}",
|
||||
// iconClass: "{{ 'fa icon-failures-' + inventory.failed_hosts_class }}",
|
||||
// awToolTip: "{{ inventory.failed_hosts_tip }}",
|
||||
// dataPlacement: "top"
|
||||
// },
|
||||
manage: {
|
||||
label: 'Manage',
|
||||
ngClick: 'manageInventory(inventory.id)',
|
||||
awToolTip: 'Manage Inventory',
|
||||
dataPlacement: 'top'
|
||||
},
|
||||
edit: {
|
||||
label: 'Edit',
|
||||
ngClick: 'editInventory(inventory.id)', //'editInventoryProperties(inventory.id)',
|
||||
|
||||
@@ -83,11 +83,11 @@ export default
|
||||
ngClick: "createGroup()",
|
||||
awToolTip: "Create a new group"
|
||||
},
|
||||
// properties: {
|
||||
// mode: 'all',
|
||||
// awToolTip: "Edit inventory properties",
|
||||
// ngClick: 'editInventoryProperties()'
|
||||
// },
|
||||
properties: {
|
||||
mode: 'all',
|
||||
awToolTip: "Edit inventory properties",
|
||||
ngClick: 'editInventoryProperties()'
|
||||
},
|
||||
refresh: {
|
||||
mode: 'all',
|
||||
awToolTip: "Refresh the page",
|
||||
|
||||
@@ -136,7 +136,7 @@ angular.module('GeneratorHelpers', [systemStatus.name])
|
||||
icon = 'fa-check-square-o';
|
||||
break;
|
||||
case 'properties':
|
||||
icon = "fa-wrench";
|
||||
icon = "fa-pencil";
|
||||
break;
|
||||
case 'reset':
|
||||
icon = "fa-undo";
|
||||
@@ -162,9 +162,6 @@ angular.module('GeneratorHelpers', [systemStatus.name])
|
||||
case 'copy':
|
||||
icon = "fa-copy";
|
||||
break;
|
||||
case 'manage':
|
||||
icon = "fa-sitemap";
|
||||
break;
|
||||
}
|
||||
icon += (size) ? " " + size : "";
|
||||
return Icon(icon);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<ul class="ansible-breadcrumb" id="#breadcrumbs">
|
||||
<li><a href="#/inventories">Inventories</a></li>
|
||||
<li><a href = "#/inventories/{{inventory.id}}">{{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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user