ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject ambari git commit: AMBARI-21900. Upgrade History Style Changes (alexantonenko)
Date Thu, 07 Sep 2017 14:07:43 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.6 313e3bf0f -> 3471d44b4


AMBARI-21900. Upgrade History Style Changes (alexantonenko)


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

Branch: refs/heads/branch-2.6
Commit: 3471d44b4aca0b722050d769383ccc877ce5ab98
Parents: 313e3bf
Author: Alex Antonenko <aantonenko@hortonworks.com>
Authored: Thu Sep 7 17:07:28 2017 +0300
Committer: Alex Antonenko <aantonenko@hortonworks.com>
Committed: Thu Sep 7 17:07:28 2017 +0300

----------------------------------------------------------------------
 ambari-web/app/styles/stack_versions.less                      | 6 ++++++
 .../app/templates/main/admin/stack_upgrade/upgrade_history.hbs | 6 +++---
 .../app/views/main/admin/stack_upgrade/upgrade_history_view.js | 4 ++++
 3 files changed, 13 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/3471d44b/ambari-web/app/styles/stack_versions.less
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/stack_versions.less b/ambari-web/app/styles/stack_versions.less
index c1b2ab6..fb5b873 100644
--- a/ambari-web/app/styles/stack_versions.less
+++ b/ambari-web/app/styles/stack_versions.less
@@ -895,6 +895,12 @@
   .wide-column {
     width: 14%;
   }
+  .widest-column{
+    width: 20%;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    white-space: nowrap;
+  }
   .accordion-group {
     border-right: none;
     border-bottom: none;

http://git-wip-us.apache.org/repos/asf/ambari/blob/3471d44b/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_history.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_history.hbs b/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_history.hbs
index b355fda..8f129b0 100644
--- a/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_history.hbs
+++ b/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_history.hbs
@@ -46,7 +46,7 @@
       <tr>
         <th>{{t common.direction}}</th>
         <th>{{t common.type}}</th>
-        <th class="wide-column">{{t common.repository}}</th>
+        <th class="widest-column">{{t common.repository}}</th>
         <th class="wide-column">{{t common.repositoryType}}</th>
         <th>{{t common.start.time}}</th>
         <th>{{t common.duration}}</th>
@@ -96,8 +96,8 @@
               <td>
                 <span>{{item.upgradeTypeLabel}}</span>
               </td>
-              <td class="wide-column">
-                <span>{{item.repositoryName}}</span>
+              <td class="widest-column">
+                <span {{bindAttr data-original-title="item.repositoryName" }}>{{item.repositoryName}}</span>
               </td>
               <td class="wide-column">
                 <span>{{item.repositoryType}}</span>

http://git-wip-us.apache.org/repos/asf/ambari/blob/3471d44b/ambari-web/app/views/main/admin/stack_upgrade/upgrade_history_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/admin/stack_upgrade/upgrade_history_view.js b/ambari-web/app/views/main/admin/stack_upgrade/upgrade_history_view.js
index 29524b3..aac9818 100644
--- a/ambari-web/app/views/main/admin/stack_upgrade/upgrade_history_view.js
+++ b/ambari-web/app/views/main/admin/stack_upgrade/upgrade_history_view.js
@@ -207,6 +207,10 @@ App.MainAdminStackUpgradeHistoryView = App.TableView.extend(App.TableServerViewM
     this.$(".accordion").on("show hide", function (e) {
       $(e.target).siblings(".accordion-heading").find("i.accordion-toggle").toggleClass('icon-caret-right
icon-caret-down');
     });
+
+    Em.run.later(this, function(){
+      App.tooltip( $('.widest-column span') );
+    }, 1000)
   },
 
   observesCategories: function () {


Mime
View raw message