Repository: ambari
Updated Branches:
  refs/heads/trunk 45383d369 -> 915c152b1


AMBARI-5122. host details page ui cleanup. (xiwang)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/915c152b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/915c152b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/915c152b

Branch: refs/heads/trunk
Commit: 915c152b1d9ec7ef19a735af34026fdcbac65392
Parents: 45383d3
Author: Xi Wang <[email protected]>
Authored: Mon Mar 17 18:05:32 2014 -0700
Committer: Xi Wang <[email protected]>
Committed: Mon Mar 17 18:21:53 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/styles/application.less         | 32 +++++++++------------
 ambari-web/app/templates/main/host/details.hbs |  2 +-
 2 files changed, 15 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/915c152b/ambari-web/app/styles/application.less
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/application.less 
b/ambari-web/app/styles/application.less
index a5e29bc..3b92247 100644
--- a/ambari-web/app/styles/application.less
+++ b/ambari-web/app/styles/application.less
@@ -3320,8 +3320,20 @@ table.graphs {
   margin-top: 27px;
 
   .status-info {
-    .alert {
-      margin-bottom: 0;
+    .host-title {
+      font-size: 18px;
+      font-weight: 700;
+      background-position: 0px center;
+      padding-left: 17px;
+    }
+    .host-maintenance-notice {
+      background-color: #E4E4E4;
+      border: 1px solid #D4D4D4;
+      color: #333333;
+      padding: 8px 35px 8px 14px;
+      -webkit-border-radius: 4px;
+      -moz-border-radius: 4px;
+      border-radius: 4px;
     }
   }
 
@@ -4624,22 +4636,6 @@ ul.inline li {
   width: 140px;
 }
 
-#host-details > .host-maintenance {
-  text-align: right;
-  margin-top: -28px;
-}
-
-#host-details > .host-maintenance > div {
-  text-align: left;
-}
-
-#host-details > .host-title {
-  font-size: 18px;
-  font-weight: 700;
-  background-position: 0px center;
-  padding-left: 17px;
-}
-
 /* fieldset begin */
 .fieldset {
   border: 2px solid black;

http://git-wip-us.apache.org/repos/asf/ambari/blob/915c152b/ambari-web/app/templates/main/host/details.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/host/details.hbs 
b/ambari-web/app/templates/main/host/details.hbs
index 8f8ced9..0c40a90 100644
--- a/ambari-web/app/templates/main/host/details.hbs
+++ b/ambari-web/app/templates/main/host/details.hbs
@@ -25,7 +25,7 @@
       <span class="label label-success alerts-count" {{action 
"showAlertsPopup" content target="App.router.mainHostController"}}>{{t 
hosts.host.alert.noAlerts}}</span>
     {{/if}}
     {{#unless view.isActive}}
-      <span class="alert alert-warning pull-right"><span 
class="icon-warning-sign"></span> {{t hosts.host.passive.mode}}</span>
+      <span class="host-maintenance-notice pull-right"><span 
class="icon-medkit"></span> {{t hosts.host.passive.mode}}</span>
     {{/unless}}
   </div>  
   <div><a href="javascript:void(null)" data-toggle="modal" {{action back}}><i 
class="icon-arrow-left"></i>&nbsp;{{t common.back}}</a></div>

Reply via email to