mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
Inventory cleanup. Added tooltip to host status indicators. Did same for project status indicator. Fixed inventory host create button color.
This commit is contained in:
@@ -21,7 +21,9 @@ angular.module('InventoryHostsFormDefinition', [])
|
|||||||
label: 'Host Name',
|
label: 'Host Name',
|
||||||
ngClick: "editHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')",
|
ngClick: "editHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')",
|
||||||
badgeIcon: "\{\{ 'icon-failures-' + host.has_active_failures \}\}",
|
badgeIcon: "\{\{ 'icon-failures-' + host.has_active_failures \}\}",
|
||||||
|
badgeToolTip: 'Indicates if host has active failures',
|
||||||
badgePlacement: 'left',
|
badgePlacement: 'left',
|
||||||
|
badgeTipPlacement: 'bottom',
|
||||||
columnClass: 'col-lg-3'
|
columnClass: 'col-lg-3'
|
||||||
},
|
},
|
||||||
groups: {
|
groups: {
|
||||||
@@ -59,7 +61,7 @@ angular.module('InventoryHostsFormDefinition', [])
|
|||||||
ngHide: "hostAddHide",
|
ngHide: "hostAddHide",
|
||||||
awToolTip: "Copy an existing host to the selected group",
|
awToolTip: "Copy an existing host to the selected group",
|
||||||
dataPlacement: 'bottom',
|
dataPlacement: 'bottom',
|
||||||
'class': 'btn-sm btn-primary',
|
'class': 'btn-sm btn-success',
|
||||||
icon: 'icon-check'
|
icon: 'icon-check'
|
||||||
},
|
},
|
||||||
create: {
|
create: {
|
||||||
|
|||||||
@@ -479,7 +479,8 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
|
|||||||
"data-name=\"" + sorted[i].name + "\" " +
|
"data-name=\"" + sorted[i].name + "\" " +
|
||||||
"data-group-id=\"" + sorted[i].id + "\" " +
|
"data-group-id=\"" + sorted[i].id + "\" " +
|
||||||
"><a href=\"\" class=\"expand\"><i class=\"icon-caret-down\"></i></a> " +
|
"><a href=\"\" class=\"expand\"><i class=\"icon-caret-down\"></i></a> " +
|
||||||
"<i class=\"field-badge icon-failures-" + sorted[i].has_active_failures + "\"></i> " +
|
"<i class=\"field-badge icon-failures-" + sorted[i].has_active_failures + "\" " +
|
||||||
|
"aw-tool-tip=\"Indicates if group contains hosts with active failures\" data-placement=\"bottom\"></i> " +
|
||||||
"<a href=\"\" class=\"activate\">" + sorted[i].name + "</a> ";
|
"<a href=\"\" class=\"activate\">" + sorted[i].name + "</a> ";
|
||||||
if (sorted[i].children.length > 0) {
|
if (sorted[i].children.length > 0) {
|
||||||
buildHTML(sorted[i].children);
|
buildHTML(sorted[i].children);
|
||||||
@@ -649,7 +650,8 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
|
|||||||
"data-groups=\"" + data.related.groups + "\" " +
|
"data-groups=\"" + data.related.groups + "\" " +
|
||||||
"data-name=\"" + data.name + "\" " +
|
"data-name=\"" + data.name + "\" " +
|
||||||
"><a href=\"\" class=\"expand\"><i class=\"icon-caret-down\"></i></a> " +
|
"><a href=\"\" class=\"expand\"><i class=\"icon-caret-down\"></i></a> " +
|
||||||
"<i class=\"field-badge icon-failures-" + data.has_active_failures + "\"></i> " +
|
"<i class=\"field-badge icon-failures-" + data.has_active_failures + "\"" +
|
||||||
|
"aw-tool-tip=\"Indicates if group contains hosts with active failures\" data-placement=\"bottom\"></i> " +
|
||||||
"<a href=\"\" class=\"activate active\">" + data.name + "</a>";
|
"<a href=\"\" class=\"activate active\">" + data.name + "</a>";
|
||||||
scope.$emit('buildAllGroups', data.name, data.related.tree, data.related.groups);
|
scope.$emit('buildAllGroups', data.name, data.related.tree, data.related.groups);
|
||||||
scope.$emit('refreshHost', null, 'All Hosts');
|
scope.$emit('refreshHost', null, 'All Hosts');
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ angular.module('InventoriesListDefinition', [])
|
|||||||
label: 'Name',
|
label: 'Name',
|
||||||
badgeIcon: "\{\{ 'icon-failures-' + inventory.has_active_failures \}\}",
|
badgeIcon: "\{\{ 'icon-failures-' + inventory.has_active_failures \}\}",
|
||||||
badgePlacement: 'left',
|
badgePlacement: 'left',
|
||||||
badgeToolTip: 'Inventory contains hosts with active failures',
|
badgeToolTip: 'Indicates if inventory contains hosts with active failures',
|
||||||
badgeTipPlacement: 'bottom'
|
badgeTipPlacement: 'bottom'
|
||||||
},
|
},
|
||||||
description: {
|
description: {
|
||||||
|
|||||||
@@ -24,7 +24,9 @@ angular.module('ProjectsListDefinition', [])
|
|||||||
key: true,
|
key: true,
|
||||||
label: 'Name',
|
label: 'Name',
|
||||||
badgeIcon: "\{\{ 'icon-failures-' + project.badge \}\}",
|
badgeIcon: "\{\{ 'icon-failures-' + project.badge \}\}",
|
||||||
badgePlacement: 'left'
|
badgePlacement: 'left',
|
||||||
|
badgeToolTip: "Indicates the project\'s health based on its status",
|
||||||
|
badgeTipPlacement: 'bottom'
|
||||||
},
|
},
|
||||||
description: {
|
description: {
|
||||||
label: 'Description'
|
label: 'Description'
|
||||||
|
|||||||
Reference in New Issue
Block a user