You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by xi...@apache.org on 2015/07/21 20:25:41 UTC

[1/3] ambari git commit: AMBARI-12452. Template widget type should show n/a if no data available.(xiwang)

Repository: ambari
Updated Branches:
  refs/heads/trunk fe55b9c95 -> 1157dac6d


AMBARI-12452. Template widget type should show n/a if no data available.(xiwang)


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

Branch: refs/heads/trunk
Commit: 1157dac6d1f635bb4c46e0fb98e2c8e1ec83f388
Parents: 8225cdb
Author: Xi Wang <xi...@apache.org>
Authored: Fri Jul 17 15:18:51 2015 -0700
Committer: Xi Wang <xi...@apache.org>
Committed: Tue Jul 21 11:25:05 2015 -0700

----------------------------------------------------------------------
 ambari-web/app/mixins/common/widgets/widget_mixin.js       | 2 +-
 ambari-web/app/templates/common/widget/template_widget.hbs | 2 +-
 ambari-web/test/mixins/common/widget_mixin_test.js         | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1157dac6/ambari-web/app/mixins/common/widgets/widget_mixin.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/common/widgets/widget_mixin.js b/ambari-web/app/mixins/common/widgets/widget_mixin.js
index c96238b..1a92862 100644
--- a/ambari-web/app/mixins/common/widgets/widget_mixin.js
+++ b/ambari-web/app/mixins/common/widgets/widget_mixin.js
@@ -406,7 +406,7 @@ App.WidgetMixin = Ember.Mixin.create({
       value.computedValue = value.value.replace(this.get('EXPRESSION_REGEX'), function (match) {
         var float = parseFloat(computeExpression[match]);
         if (isNaN(float)) {
-          return computeExpression[match] || "";
+          return computeExpression[match] || "<span class=\"grey\">n/a</span>";
         } else {
           return String((float % 1 !== 0) ? float.toFixed(2) : float);
         }

http://git-wip-us.apache.org/repos/asf/ambari/blob/1157dac6/ambari-web/app/templates/common/widget/template_widget.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/common/widget/template_widget.hbs b/ambari-web/app/templates/common/widget/template_widget.hbs
index ba323ca..508c07b 100644
--- a/ambari-web/app/templates/common/widget/template_widget.hbs
+++ b/ambari-web/app/templates/common/widget/template_widget.hbs
@@ -30,7 +30,7 @@
         <i class="icon-edit"></i>
       </a>
     {{/isAccessible}}
-    <div {{bindAttr class="view.contentColor :content"}}>{{view.displayValue}}</div>
+    <div {{bindAttr class="view.contentColor :content"}}>{{{view.displayValue}}}</div>
     {{#if view.content.description}}
       <div class="hidden-description">
         {{view.content.description}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/1157dac6/ambari-web/test/mixins/common/widget_mixin_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/mixins/common/widget_mixin_test.js b/ambari-web/test/mixins/common/widget_mixin_test.js
index b9885cb..3917dfc 100644
--- a/ambari-web/test/mixins/common/widget_mixin_test.js
+++ b/ambari-web/test/mixins/common/widget_mixin_test.js
@@ -294,7 +294,7 @@ describe('App.WidgetMixin', function () {
         value: '${a}'
       }]);
       mixinObject.calculateValues();
-      expect(mixinObject.get('content.values')[0].computedValue).to.be.empty;
+      expect(mixinObject.get('content.values')[0].computedValue).to.equal('<span class="grey">n/a</span>');
     });
     it("value is null", function () {
       this.mock.returns({'${a}': null});
@@ -302,7 +302,7 @@ describe('App.WidgetMixin', function () {
         value: '${a}'
       }]);
       mixinObject.calculateValues();
-      expect(mixinObject.get('content.values')[0].computedValue).to.be.empty;
+      expect(mixinObject.get('content.values')[0].computedValue).to.equal('<span class="grey">n/a</span>');
     });
   });
 


[3/3] ambari git commit: AMBARI-12206. Ambari Metrics refresh and alerts icons are overflowed.(xiwang)

Posted by xi...@apache.org.
AMBARI-12206. Ambari Metrics refresh and alerts icons are overflowed.(xiwang)


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

Branch: refs/heads/trunk
Commit: a541127a52622c75373493de2e6954da13e67690
Parents: fe55b9c
Author: Xi Wang <xi...@apache.org>
Authored: Thu Jul 9 13:40:08 2015 -0700
Committer: Xi Wang <xi...@apache.org>
Committed: Tue Jul 21 11:25:05 2015 -0700

----------------------------------------------------------------------
 ambari-web/app/styles/application.less | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a541127a/ambari-web/app/styles/application.less
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/application.less b/ambari-web/app/styles/application.less
index 6313a01..d671118 100644
--- a/ambari-web/app/styles/application.less
+++ b/ambari-web/app/styles/application.less
@@ -2281,7 +2281,7 @@ a:focus {
       list-style: none;
       height: 20px;
       width: 20px;
-      margin-left: 6px;
+      margin-left: 2px;
       display: inline;
       float: none;
     }
@@ -2310,7 +2310,7 @@ a:focus {
         padding: 1px 4px;
         background: @health-status-red;
         float: right;
-        margin-right: 5px;
+        margin-right: 1px;
         margin-top: 3px;
         &.alerts-crit-count {
           background: @health-status-red;
@@ -2328,7 +2328,7 @@ a:focus {
     }
     .icon-laptop {
       color: #555;
-      padding-left: 5px;
+      padding-left: 1px;
     }
     .active {
       .icon-laptop {
@@ -3563,7 +3563,7 @@ table.graphs {
 .services-menu {
   .icon-refresh {
     color: @restart-indicator-color;
-    margin-left: 4px;
+    margin-left: 1px;
   }
 }
 #host-details, #serviceConfig {
@@ -5327,6 +5327,20 @@ i.icon-asterisks {
       }
     }
   }
+
+  .services-menu .nav-list li {
+    .label.alerts-count {
+      margin-right: 4px;
+    }
+    .icon-laptop {
+      padding-left: 5px;
+    }
+    .health-status-LIVE, .health-status-STARTING,
+    .health-status-DEAD-RED, .health-status-STOPPING,
+    .health-status-DEAD-YELLOW {
+      margin-left: 6px;
+    }
+  }
 }
 
 .filter-combobox{


[2/3] ambari git commit: AMBARI-12383. Gauge warning gets overflowed on service summary page.(xiwang)

Posted by xi...@apache.org.
AMBARI-12383. Gauge warning gets overflowed on  service summary page.(xiwang)


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

Branch: refs/heads/trunk
Commit: 8225cdb5b463c655b85bd80a62665086909a9e06
Parents: a541127
Author: Xi Wang <xi...@apache.org>
Authored: Fri Jul 10 16:25:18 2015 -0700
Committer: Xi Wang <xi...@apache.org>
Committed: Tue Jul 21 11:25:05 2015 -0700

----------------------------------------------------------------------
 ambari-web/app/styles/enhanced_service_dashboard.less | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/8225cdb5/ambari-web/app/styles/enhanced_service_dashboard.less
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/enhanced_service_dashboard.less b/ambari-web/app/styles/enhanced_service_dashboard.less
index a734361..77d03f9 100644
--- a/ambari-web/app/styles/enhanced_service_dashboard.less
+++ b/ambari-web/app/styles/enhanced_service_dashboard.less
@@ -164,9 +164,10 @@
           padding-top: 30px;
         }
         .overflow-warning {
-          font-size: 14px;
+          font-size: 13px;
+          font-weight: normal;
           margin-left: 10px;
-          padding: 10px 20px;
+          padding: 7px 7px;
         }
       }
     }