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