You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2014/06/28 09:04:55 UTC

git commit: AMBARI-6314. UI: Assign Slaves and Clients page shows hidden info in scrollbar. (xiwang via yusaku)

Repository: ambari
Updated Branches:
  refs/heads/branch-1.6.1 104d86f7d -> 18cf98db0


AMBARI-6314. UI: Assign Slaves and Clients page shows hidden info in scrollbar. (xiwang via yusaku)


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

Branch: refs/heads/branch-1.6.1
Commit: 18cf98db0c52ac8cb3e44f915094aa4373b6b495
Parents: 104d86f
Author: Yusaku Sako <yu...@hortonworks.com>
Authored: Sat Jun 28 00:02:43 2014 -0700
Committer: Yusaku Sako <yu...@hortonworks.com>
Committed: Sat Jun 28 00:02:43 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/styles/application.less    | 28 ++++++++++++++++++++++++++
 ambari-web/app/templates/wizard/step3.hbs |  6 +++---
 ambari-web/app/templates/wizard/step6.hbs |  2 +-
 ambari-web/app/templates/wizard/step9.hbs |  4 ++--
 4 files changed, 34 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/18cf98db/ambari-web/app/styles/application.less
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/application.less b/ambari-web/app/styles/application.less
index ce72348..1edaec0 100644
--- a/ambari-web/app/styles/application.less
+++ b/ambari-web/app/styles/application.less
@@ -749,6 +749,17 @@ h1 {
     .progress {
       margin-bottom: 0;
     }
+    #confirm-hosts-table {
+      td.host {
+        max-width: 290px;
+      }
+      td.host .trim_hostname {
+        max-width: 97% !important;
+        display: block;
+        overflow: hidden;
+        text-overflow: ellipsis;
+      }
+    }
   }
   #step4, #step5, #step6 {
     a.selected {
@@ -766,6 +777,14 @@ h1 {
     .pre-scrollable {
       max-height: 440px;
       position: relative;
+      #component_assign_table {
+        .trim_hostname {
+          max-width: 180px;
+          display: block;
+          overflow: hidden;
+          text-overflow: ellipsis;
+        }
+      }
     }
     .spinner-overlay {
       position: absolute;
@@ -848,6 +867,15 @@ h1 {
       th.messgage {
         width: 35%;
       }
+      td.host {
+        max-width: 290px;
+      }
+      td.host .trim_hostname {
+        max-width: 97% !important;
+        display: block;
+        overflow: hidden;
+        text-overflow: ellipsis;
+      }
       .progress-bar {
         width: 73%;
         .progress {

http://git-wip-us.apache.org/repos/asf/ambari/blob/18cf98db/ambari-web/app/templates/wizard/step3.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/wizard/step3.hbs b/ambari-web/app/templates/wizard/step3.hbs
index 756224e..11d5cf0 100644
--- a/ambari-web/app/templates/wizard/step3.hbs
+++ b/ambari-web/app/templates/wizard/step3.hbs
@@ -54,7 +54,7 @@
     </div>
 
     <div class="pre-scrollable" style="max-height: 440px;">
-      <table class="table table-bordered table-striped">
+      <table id="confirm-hosts-table" class="table table-bordered table-striped">
         <thead>
         <tr>
           <th class="tinyspan">
@@ -77,8 +77,8 @@
               <td>
                 {{view Ember.Checkbox checkedBinding="host.isChecked"}}
               </td>
-              <td>
-                {{host.name}}
+              <td class="host">
+                <span title="{{unbound host.name}}" class="trim_hostname">{{host.name}}</span>
               </td>
               <td>
                 <div {{bindAttr class="host.bootBarColor host.isBootDone::progress-striped host.isBootDone::active :progress"}}>

http://git-wip-us.apache.org/repos/asf/ambari/blob/18cf98db/ambari-web/app/templates/wizard/step6.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/wizard/step6.hbs b/ambari-web/app/templates/wizard/step6.hbs
index 10ce12a..fb053da 100644
--- a/ambari-web/app/templates/wizard/step6.hbs
+++ b/ambari-web/app/templates/wizard/step6.hbs
@@ -44,7 +44,7 @@
           {{#each host in view.pageContent}}
             <tr>
               {{#view App.WizardStep6HostView hostBinding="host" }}
-                {{host.hostName}}
+                <span class="trim_hostname">{{host.hostName}}</span>
                 {{#if host.hasMaster}}
                   <i class=icon-asterisks>&#10037;</i>
                 {{/if}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/18cf98db/ambari-web/app/templates/wizard/step9.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/wizard/step9.hbs b/ambari-web/app/templates/wizard/step9.hbs
index 307609e..671efaa 100644
--- a/ambari-web/app/templates/wizard/step9.hbs
+++ b/ambari-web/app/templates/wizard/step9.hbs
@@ -79,8 +79,8 @@
           {{#if view.pageContent}}
             {{#each host in view.pageContent}}
               {{#view App.HostStatusView objBinding="host" controllerBinding="controller"}}
-              <td>
-                {{host.name}}
+              <td class="host">
+                <span title="{{unbound host.name}}" class="trim_hostname">{{host.name}}</span>
               </td>
               <td>
                 <div class="progress-bar pull-left">