Updated Branches:
  refs/heads/trunk 71b0044bf -> 4fdeab528

AMBARI-2596. Show "No hosts to display" message on step9 if no hosts in table. 
(atkach via yusaku)


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

Branch: refs/heads/trunk
Commit: 4fdeab528f9e1cfbaa19700b19c3709123109eb9
Parents: 71b0044
Author: Yusaku Sako <[email protected]>
Authored: Tue Jul 9 12:02:43 2013 -0700
Committer: Yusaku Sako <[email protected]>
Committed: Tue Jul 9 12:02:43 2013 -0700

----------------------------------------------------------------------
 ambari-web/app/templates/wizard/step9.hbs | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/4fdeab52/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 42a0a35..9ede6c5 100644
--- a/ambari-web/app/templates/wizard/step9.hbs
+++ b/ambari-web/app/templates/wizard/step9.hbs
@@ -77,6 +77,7 @@
         </thead>
 
         <tbody>
+        {{#if controller.visibleHosts.length}}
         {{#each host in controller.visibleHosts}}
         {{#view App.HostStatusView objBinding="host"}}
         <td>
@@ -99,6 +100,11 @@
 
         {{/view}}
         {{/each}}
+        {{else}}
+        <tr>
+            <td colspan="3"><p>{{t installer.step3.hosts.noHosts}}</p></td>
+        </tr>
+        {{/if}}
 
         </tbody>
       </table>

Reply via email to