浏览代码

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

atkach 12 年之前
父节点
当前提交
214e13211a
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      ambari-web/app/templates/main/service/info/summary.hbs

+ 3 - 4
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}}