diff --git a/awx/ui/client/src/inventories/inventories.block.less b/awx/ui/client/src/inventories/inventories.block.less new file mode 100644 index 0000000000..f3ffd66c4b --- /dev/null +++ b/awx/ui/client/src/inventories/inventories.block.less @@ -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; +} diff --git a/awx/ui/client/src/inventories/list/inventory-list.controller.js b/awx/ui/client/src/inventories/list/inventory-list.controller.js index 59f36574ff..283081d548 100644 --- a/awx/ui/client/src/inventories/list/inventory-list.controller.js +++ b/awx/ui/client/src/inventories/list/inventory-list.controller.js @@ -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 = "\n"; + html = "
\n"; html += "\n"; html += ""; html += ""; @@ -125,7 +127,7 @@ function InventoriesList($scope, $rootScope, $location, $log, data.results.forEach(function(row) { html += "\n"; html += "\n"; + ". Click for details\" aw-tip-placement=\"top\">\n"; html += ""; html += "";
Status
" + ($filter('longDate')(row.finished)).replace(/ /,'
') + "
" + $filter('sanitize')(ellipsis(row.name)) + "