mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
Fixed inventory host status to work with pop-over changes.
This commit is contained in:
parent
f4efad714f
commit
65aae82827
@ -113,10 +113,12 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
|
||||
}
|
||||
html += "</tbody>\n";
|
||||
html += "</table>\n";
|
||||
html += "<div class=\"popover-footer\"><span class=\"key\">esc</span> or click to close</div>\n";
|
||||
}
|
||||
else {
|
||||
title = 'No job data';
|
||||
html = '<p>No recent job data available for this host.</p>';
|
||||
html += "<div class=\"popover-footer\"><span class=\"key\">esc</span> or click to close</div>\n";
|
||||
}
|
||||
}
|
||||
else if (host.has_active_failures === false && host.last_job === null) {
|
||||
|
@ -63,7 +63,8 @@ angular.module('InventoryHostsDefinition', [])
|
||||
awToolTip: "{{ host.badgeToolTip }}",
|
||||
awTipPlacement: 'top',
|
||||
dataPlacement: 'left',
|
||||
iconClass: "{{ 'fa icon-failures-' + host.has_active_failures }}"
|
||||
iconClass: "{{ 'fa icon-failures-' + host.has_active_failures }}",
|
||||
id: 'active-failutes-action'
|
||||
},
|
||||
edit: {
|
||||
//label: 'Edit',
|
||||
|
@ -213,7 +213,7 @@ textarea {
|
||||
h3.popover-title, .popover-content, .popover-content blockquote {
|
||||
font-size: 12px;
|
||||
}
|
||||
.flyout thead> tr> th, .flyout tbody> tr> td {
|
||||
.flyout thead> tr> th, .flyout tbody> tr> td, .flyout tbody> tr> td> a {
|
||||
font-size: 12px;
|
||||
}
|
||||
.popover-title {
|
||||
@ -226,9 +226,9 @@ textarea {
|
||||
}
|
||||
.popover-footer {
|
||||
font-size: 12px;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
text-align: right;
|
||||
margin-top: 10px;
|
||||
text-align: right;
|
||||
color: @grey;
|
||||
.key {
|
||||
color: @white;
|
||||
background-color: @grey;
|
||||
|
@ -316,7 +316,6 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job
|
||||
$('.popover-content, .popover-title').click(function() {
|
||||
$('#' + self).popover('hide');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$(document).bind('keydown', function(e) {
|
||||
|
@ -377,7 +377,9 @@ angular.module('ListGenerator', ['GeneratorHelpers'])
|
||||
});
|
||||
} else {
|
||||
fAction = list.fieldActions[field_action];
|
||||
html += "<a ";
|
||||
html += "<a id=\"";
|
||||
html += (fAction.id) ? fAction.id : field_action + "-action";
|
||||
html += "\" ";
|
||||
html += (fAction.href) ? "href=\"" + fAction.href + "\" " : "";
|
||||
html += (fAction.ngHref) ? "ng-href=\"" + fAction.ngHref + "\" " : "";
|
||||
html += (field_action === 'cancel') ? "class=\"cancel red-txt\" " : "";
|
||||
|
Loading…
Reference in New Issue
Block a user