mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
Inventory refactor: clean up tool tips on group view.
This commit is contained in:
@@ -141,7 +141,7 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
|||||||
// Return values for use on host status indicator
|
// Return values for use on host status indicator
|
||||||
|
|
||||||
if (active_failures > 0) {
|
if (active_failures > 0) {
|
||||||
tip = "Contains " + active_failures +
|
tip = active_failures +
|
||||||
[ (active_failures == 1) ? ' host' : ' hosts' ] + ' with failed jobs.' +
|
[ (active_failures == 1) ? ' host' : ' hosts' ] + ' with failed jobs.' +
|
||||||
[ (active_failures == 1) ? ' host' : ' hosts' ] + '.';
|
[ (active_failures == 1) ? ' host' : ' hosts' ] + '.';
|
||||||
html_class = 'true';
|
html_class = 'true';
|
||||||
@@ -151,17 +151,12 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
|||||||
failures = false;
|
failures = false;
|
||||||
if (total_hosts == 0) {
|
if (total_hosts == 0) {
|
||||||
// no hosts
|
// no hosts
|
||||||
tip = "There are no hosts in this group.";
|
tip = "Group contains 0 hosts.";
|
||||||
html_class = 'na';
|
html_class = 'na';
|
||||||
}
|
}
|
||||||
else if (total_hosts == 1) {
|
|
||||||
// on host with 0 failures
|
|
||||||
tip = "The host in this group does not have a recent job failure.";
|
|
||||||
html_class = 'false';
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
// many hosts with 0 failures
|
// many hosts with 0 failures
|
||||||
tip = "None of the " + total_hosts + " hosts in this group have a recent job failure.";
|
tip = 'No job failures';
|
||||||
html_class = 'false';
|
html_class = 'false';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -193,17 +188,17 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
|||||||
launch_class = 'btn-disabled',
|
launch_class = 'btn-disabled',
|
||||||
stat = 'n/a';
|
stat = 'n/a';
|
||||||
stat_class = 'icon-cloud-na disabled';
|
stat_class = 'icon-cloud-na disabled';
|
||||||
status_tip = 'Group source not configured. Click <i class="fa fa-pencil"></i> to update.';
|
status_tip = 'Cloud source not configured. Click <i class="fa fa-pencil"></i> to update.';
|
||||||
launch_tip = status_tip;
|
launch_tip = status_tip;
|
||||||
break;
|
break;
|
||||||
case 'failed':
|
case 'failed':
|
||||||
status_tip = 'Failed with errors. Click to view log.';
|
status_tip = 'Sync failed. Click to view log.';
|
||||||
break;
|
break;
|
||||||
case 'successful':
|
case 'successful':
|
||||||
status_tip = 'Success! Click to view log.';
|
status_tip = 'Sync completed. Click to view log.';
|
||||||
break;
|
break;
|
||||||
case 'updating':
|
case 'updating':
|
||||||
status_tip = 'Running';
|
status_tip = 'Sync running';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user