From 5ee176e4512221424d9bfaff6bf2f82c6b2c6ceb Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Wed, 25 Jun 2014 11:16:39 -0400 Subject: [PATCH] 2.0 style changes More work on status area of job detail page. It now collapses perfectly as viewport size shrinks. --- awx/ui/static/js/controllers/JobDetail.js | 1 - awx/ui/static/less/job-details.less | 56 +++++++++++++---- awx/ui/static/partials/job_detail.html | 76 +++++++++++------------ 3 files changed, 81 insertions(+), 52 deletions(-) diff --git a/awx/ui/static/js/controllers/JobDetail.js b/awx/ui/static/js/controllers/JobDetail.js index aeb72f01cd..6263de97df 100644 --- a/awx/ui/static/js/controllers/JobDetail.js +++ b/awx/ui/static/js/controllers/JobDetail.js @@ -530,7 +530,6 @@ 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 = $(window).height() - $('#main-menu-container .navbar').outerHeight(); if (height > 15) { // there's a bunch of white space at the bottom, let's use it diff --git a/awx/ui/static/less/job-details.less b/awx/ui/static/less/job-details.less index 22ce6f72b2..6a1a8eb572 100644 --- a/awx/ui/static/less/job-details.less +++ b/awx/ui/static/less/job-details.less @@ -136,26 +136,33 @@ #job-status-form { label { - font-weight: normal; + font-weight: bold; } .control-label { padding-top: 0; + padding-right: 0; + text-align: left; } .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; + text-align: left; margin-bottom: 15px; } + #started-time, + #finished-time, + #elapsed-time { + display: inline-block; + } + #finished-time, + #elapsed-time { + padding-left: 15px; + } } } @@ -247,10 +254,22 @@ } } -#search_all_hosts_name { - font-size: 14px; - padding-left: 3px; - padding-right: 20px; +#summary-search-section { + .remove-left-padding { + padding-left: 0; + } + label { + text-align: left; + font-weight: normal; + padding-left: 0; + padding-right: 0; + padding-top: 6px; + } + #search_all_hosts_name { + width: 100%; + padding-left: 3px; + padding-right: 20px; + } } #event-help-link { @@ -367,9 +386,20 @@ svg text.percent{ font-weight: bold; } - @media (max-width: 767px) { - #job-status-form .more-or-less { - text-align: left; + #job-detail-container { + #job-status-form { + #finished-time, + #elapsed-time { + display: block; + } + #finished-time, + #elapsed-time { + padding-left: 0; + margin-left: 0; + padding-top: 15px; + } + } } } + diff --git a/awx/ui/static/partials/job_detail.html b/awx/ui/static/partials/job_detail.html index fda9acdd8c..fc00b67e78 100644 --- a/awx/ui/static/partials/job_detail.html +++ b/awx/ui/static/partials/job_detail.html @@ -20,56 +20,54 @@ -
+
+
- -
+ +
{{ job_status.status }} {{ job_status.explanation }}
- -
- {{ 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... + +
+
{{ 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 }}
- -
- -
+ +
- -
+ +
-
-
- less +
+
+
+
@@ -179,33 +177,36 @@
+
-
Filter Hosts
+
Filter
-
-
+
+
+ placeholder="Host Name" ng-disabled="searchAllDisabled" ng-keypress="allHostNameKeyPress($event)" />
-
-
- -
- - -
+
+ +
+ +
-
-
+
+ +
+
+
+
Host Summary
@@ -215,8 +216,7 @@
Host
-
Completed Tasks -
+
Completed Tasks