mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Adjust styling of inventory popovers
This commit is contained in:
parent
1c266b6ab5
commit
978b0d200e
18
awx/ui/client/src/inventories/inventories.block.less
Normal file
18
awx/ui/client/src/inventories/inventories.block.less
Normal file
@ -0,0 +1,18 @@
|
||||
.Inventories {}
|
||||
|
||||
.Inventories--popover-table {
|
||||
margin-bottom: 0;
|
||||
|
||||
& > thead > tr > th,
|
||||
& > tbody > tr > td {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.Inventories--popover-content {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.Inventories--popover-title {
|
||||
padding: 10px 0 0 10px;
|
||||
}
|
||||
@ -102,8 +102,10 @@ function InventoriesList($scope, $rootScope, $location, $log,
|
||||
elem.removeAttr('ng-click');
|
||||
$compile(elem)($scope);
|
||||
$scope.triggerPopover(event);
|
||||
}
|
||||
|
||||
$('.popover-content').addClass('Inventories Inventories--popover-content');
|
||||
$('.popover-title').addClass('Inventories Inventories--popover-title');
|
||||
}
|
||||
if ($scope.removeHostSummaryReady) {
|
||||
$scope.removeHostSummaryReady();
|
||||
}
|
||||
@ -112,7 +114,7 @@ function InventoriesList($scope, $rootScope, $location, $log,
|
||||
var html, title = "Recent Jobs";
|
||||
Wait('stop');
|
||||
if (data.count > 0) {
|
||||
html = "<table class=\"table table-condensed flyout\" style=\"width: 100%\">\n";
|
||||
html = "<table class=\"Inventories table table-condensed flyout Inventories--popover-table\" style=\"width: 100%\">\n";
|
||||
html += "<thead>\n";
|
||||
html += "<tr>";
|
||||
html += "<th>Status</th>";
|
||||
@ -125,7 +127,7 @@ function InventoriesList($scope, $rootScope, $location, $log,
|
||||
data.results.forEach(function(row) {
|
||||
html += "<tr>\n";
|
||||
html += "<td><a href=\"#/jobs/" + row.id + "\" " + "aw-tool-tip=\"" + row.status.charAt(0).toUpperCase() + row.status.slice(1) +
|
||||
". Click for details\" aw-tip-placement=\"top\"><i class=\"fa icon-job-" + row.status + "\"></i></a></td>\n";
|
||||
". Click for details\" aw-tip-placement=\"top\"><i class=\"fa SmartStatus-tooltip--" + row.status + " icon-job-" + row.status + "\"></i></a></td>\n";
|
||||
html += "<td>" + ($filter('longDate')(row.finished)).replace(/ /,'<br />') + "</td>";
|
||||
html += "<td><a href=\"#/jobs/" + row.id + "\" " + "aw-tool-tip=\"" + row.status.charAt(0).toUpperCase() + row.status.slice(1) +
|
||||
". Click for details\" aw-tip-placement=\"top\">" + $filter('sanitize')(ellipsis(row.name)) + "</a></td>";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user