diff --git a/awx/ui/static/js/controllers/JobDetail.js b/awx/ui/static/js/controllers/JobDetail.js index fa4a2ad044..01ce59b083 100644 --- a/awx/ui/static/js/controllers/JobDetail.js +++ b/awx/ui/static/js/controllers/JobDetail.js @@ -42,6 +42,7 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log, scope.searchAllHostsEnabled = true; scope.haltEventQueue = false; scope.processing = false; + scope.lessStatus = true; scope.host_summary = {}; scope.host_summary.ok = 0; @@ -529,7 +530,8 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log, $('#tasks-table-detail').mCustomScrollbar("update"); $('#hosts-table-detail').height(150); $('#hosts-table-detail').mCustomScrollbar("update"); - height = $('#wrap').height() - $('.site-footer').outerHeight() - $('.main-container').height(); + //height = $('#wrap').height() - $('.site-footer').outerHeight() - $('.main-container').height(); + height = $(window).height() - $('#main-menu-container .navbar').outerHeight() if (height > 15) { // there's a bunch of white space at the bottom, let's use it $('#plays-table-detail').height(150 + (height / 3)); @@ -638,6 +640,10 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log, return true; }; + scope.toggleLessStatus = function() { + scope.lessStatus = (scope.lessStatus) ? false : true; + }; + scope.HostDetailOnTotalScroll = _.debounce(function() { // Called when user scrolls down (or forward in time) var url, mcs = arguments[0]; diff --git a/awx/ui/static/js/controllers/Jobs.js b/awx/ui/static/js/controllers/Jobs.js index 20641fc181..b59990d4aa 100644 --- a/awx/ui/static/js/controllers/Jobs.js +++ b/awx/ui/static/js/controllers/Jobs.js @@ -242,8 +242,7 @@ function JobsListController ($scope, $compile, $routeParams, ClearScope, Breadcr search_row, page_row, height, header, row_height; if (docw > 1240 && doch > 800) { // customize the container height and # of rows based on available viewport height - available_height = $(window).height() - $('#main-menu-container .navbar').outerHeight() - $('#job-status').outerHeight() - - $('#breadcrumb-container').outerHeight() - 80; + available_height = $(window).height() - $('#main-menu-container .navbar').outerHeight() - $('#job-status').outerHeight() - 80; $('.jobs-list-container').each(function() { $(this).height(Math.floor(available_height / 2)); }); diff --git a/awx/ui/static/less/job-details.less b/awx/ui/static/less/job-details.less index 74e63a24d4..9f526995d5 100644 --- a/awx/ui/static/less/job-details.less +++ b/awx/ui/static/less/job-details.less @@ -13,11 +13,6 @@ @skipped-hosts-color: @skipped; @unreachable-hosts-color: #A9A9A9; - -#jobs-detail { - margin-top: 20px; -} - .job_summary { .table { margin-bottom: 0; @@ -110,13 +105,6 @@ margin-top: 20px; } -.status-row { - margin-bottom: 10px; - .job-label { - font-weight: bold; - } -} - #job_options { height: 100px; overflow-y: auto; @@ -144,6 +132,31 @@ .well { overflow: hidden; } + + #job-status-form { + label { + font-weight: normal; + } + .control-label { + padding-top: 0; + } + .form-group { + margin-bottom: 15px; + } + #finished-time, + #elapsed-time { + padding-left: 15px; + } + hr { + margin-top: 0; + } + .more-or-less { + font-size: 12px; + text-align: right; + margin-bottom: 15px; + } + } + } #job-summary-container { @@ -352,3 +365,10 @@ svg text.percent{ font-size:12px; font-weight: bold; } + + +@media (max-width: 767px) { + #job-status-form .more-or-less { + text-align: left; + } +} diff --git a/awx/ui/static/partials/job_detail.html b/awx/ui/static/partials/job_detail.html index a04d44e14d..fda9acdd8c 100644 --- a/awx/ui/static/partials/job_detail.html +++ b/awx/ui/static/partials/job_detail.html @@ -1,42 +1,75 @@
- +
-
-
Status
-
{{ job_status.status }}
-
{{ job_status.explanation }}
-
+
+
-
-
Started
-
{{ job_status.started | date:'MM/dd/yy HH:mm:ss' }}
-
Not Started
-
Elapsed
-
{{ job_status.elapsed }}
-
00:00:00
-
+
+
+ +
+ {{ job_status.status }} {{ job_status.explanation }} +
+
-
-
Project
- -
Inventory
- +
+ +
+ {{ job_status.started | date:'MM/dd/yy HH:mm:ss' }} + Finished  {{ job_status.finished | date:'MM/dd/yy HH:mm:ss' }} + Elapsed  {{ job_status.elapsed }} +
+
+ +
+
+ more... +
+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+
+ less +
+
+