mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 00:08:44 -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() {
|
$scope.removeInventoryLoaded = $scope.$on('InventoryLoaded', function() {
|
||||||
var e, rows;
|
var e, rows;
|
||||||
|
|
||||||
LoadBreadCrumbs();
|
LoadBreadCrumbs({
|
||||||
// path: $location.path(),
|
path: $location.path(),
|
||||||
// title: 'All Groups'//'{{ inventory.name }}'
|
title: '{{ inventory.name }}'
|
||||||
// });
|
});
|
||||||
$scope.group_breadcrumbs[0].name = "All Groups"; // $scope.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'));
|
||||||
|
|||||||
@@ -22,15 +22,6 @@ export default
|
|||||||
well: true,
|
well: true,
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
manage: {
|
|
||||||
'class': "btn-primary btn-xs activity-btn",
|
|
||||||
ngClick: "manageInventory()",
|
|
||||||
awToolTip: "Manage Inventory",
|
|
||||||
dataPlacement: "top",
|
|
||||||
icon: "icon-sitemap",
|
|
||||||
mode: 'edit',
|
|
||||||
iconSize: 'large'
|
|
||||||
},
|
|
||||||
stream: {
|
stream: {
|
||||||
'class': "btn-primary btn-xs activity-btn",
|
'class': "btn-primary btn-xs activity-btn",
|
||||||
ngClick: "showActivity()",
|
ngClick: "showActivity()",
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ export default
|
|||||||
label: 'Name',
|
label: 'Name',
|
||||||
columnClass: 'col-md-4 col-sm-6 col-xs-6',
|
columnClass: 'col-md-4 col-sm-6 col-xs-6',
|
||||||
modalColumnClass: 'col-md-8',
|
modalColumnClass: 'col-md-8',
|
||||||
linkTo: '/#/inventories/{{inventory.id}}'
|
linkTo: '/#/inventories/{{inventory.id}}/manage'
|
||||||
},
|
},
|
||||||
organization: {
|
organization: {
|
||||||
label: 'Organization',
|
label: 'Organization',
|
||||||
@@ -97,19 +97,6 @@ export default
|
|||||||
},
|
},
|
||||||
|
|
||||||
fieldActions: {
|
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: {
|
edit: {
|
||||||
label: 'Edit',
|
label: 'Edit',
|
||||||
ngClick: 'editInventory(inventory.id)', //'editInventoryProperties(inventory.id)',
|
ngClick: 'editInventory(inventory.id)', //'editInventoryProperties(inventory.id)',
|
||||||
|
|||||||
@@ -83,11 +83,11 @@ export default
|
|||||||
ngClick: "createGroup()",
|
ngClick: "createGroup()",
|
||||||
awToolTip: "Create a new group"
|
awToolTip: "Create a new group"
|
||||||
},
|
},
|
||||||
// properties: {
|
properties: {
|
||||||
// mode: 'all',
|
mode: 'all',
|
||||||
// awToolTip: "Edit inventory properties",
|
awToolTip: "Edit inventory properties",
|
||||||
// ngClick: 'editInventoryProperties()'
|
ngClick: 'editInventoryProperties()'
|
||||||
// },
|
},
|
||||||
refresh: {
|
refresh: {
|
||||||
mode: 'all',
|
mode: 'all',
|
||||||
awToolTip: "Refresh the page",
|
awToolTip: "Refresh the page",
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ angular.module('GeneratorHelpers', [systemStatus.name])
|
|||||||
icon = 'fa-check-square-o';
|
icon = 'fa-check-square-o';
|
||||||
break;
|
break;
|
||||||
case 'properties':
|
case 'properties':
|
||||||
icon = "fa-wrench";
|
icon = "fa-pencil";
|
||||||
break;
|
break;
|
||||||
case 'reset':
|
case 'reset':
|
||||||
icon = "fa-undo";
|
icon = "fa-undo";
|
||||||
@@ -162,9 +162,6 @@ angular.module('GeneratorHelpers', [systemStatus.name])
|
|||||||
case 'copy':
|
case 'copy':
|
||||||
icon = "fa-copy";
|
icon = "fa-copy";
|
||||||
break;
|
break;
|
||||||
case 'manage':
|
|
||||||
icon = "fa-sitemap";
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
icon += (size) ? " " + size : "";
|
icon += (size) ? " " + size : "";
|
||||||
return Icon(icon);
|
return Icon(icon);
|
||||||
|
|||||||
@@ -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 = "#/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>
|
<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