AMBARI-3050 Javascript error during WebHCat start/stop. (atkach)

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

Branch: refs/heads/trunk
Commit: 214e13211aff9f478b1cf49bd1e103b3c8ad679e
Parents: c8e2dec
Author: atkach <[email protected]>
Authored: Thu Aug 29 16:09:18 2013 +0300
Committer: atkach <[email protected]>
Committed: Thu Aug 29 16:09:18 2013 +0300

----------------------------------------------------------------------
 ambari-web/app/templates/main/service/info/summary.hbs | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/214e1321/ambari-web/app/templates/main/service/info/summary.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/service/info/summary.hbs 
b/ambari-web/app/templates/main/service/info/summary.hbs
index c77492e..6875793 100644
--- a/ambari-web/app/templates/main/service/info/summary.hbs
+++ b/ambari-web/app/templates/main/service/info/summary.hbs
@@ -41,10 +41,9 @@
         <table id="summary-info" class="table no-borders table-condensed">
           <tbody>
             {{#if view.noTemplateService}}
+              {{view view.sumMasterComponentView}}
               {{#each component in view.components}}
-                {{#if component.isMaster}}
-                 {{view view.sumMasterComponentView}}
-                {{else}}
+                {{#unless component.isMaster}}
                   <tr>
                     <td class="summary-label">{{component.displayName}}{{#if 
view.hasManyClients}}s{{/if}}</td>
                     <td>
@@ -55,7 +54,7 @@
                       </div>
                     </td>
                   </tr>
-                {{/if}}
+                {{/unless}}
               {{/each}}
             {{/if}}
             {{#if view.serviceStatus.hdfs}}

Reply via email to