Browse Source

AMBARI-6516. Cluster name and ambari icon should not link at all at Install step. (jaimin)

Jaimin Jetly 11 năm trước cách đây
mục cha
commit
f9e4207d56
1 tập tin đã thay đổi với 7 bổ sung2 xóa
  1. 7 2
      ambari-web/app/templates/application.hbs

+ 7 - 2
ambari-web/app/templates/application.hbs

@@ -21,8 +21,13 @@
     <div class="navbar navbar-static-top">
       <div class="navbar-inner">
         <div class="container main-container">
-          <a {{translateAttr href="topnav.logo.href"}} class="logo"><img src="/img/logo-white.png" alt="Apache Ambari" title="Apache Ambari"></a>
-          <a class="brand" {{translateAttr href="topnav.logo.href"}} title="Apache Ambari">{{t app.name}}</a>
+          {{#if isClusterDataLoaded}}
+            <a {{translateAttr href="topnav.logo.href"}} class="logo"><img src="/img/logo-white.png" alt="Apache Ambari" title="Apache Ambari"></a>
+            <a class="brand" {{translateAttr href="topnav.logo.href"}} title="Apache Ambari">{{t app.name}}</a>
+          {{else}}
+            <a class="logo"><img src="/img/logo-white.png" alt="Apache Ambari" title="Apache Ambari"></a>
+            <a class="brand" title="Apache Ambari">{{t app.name}}</a>
+          {{/if}}
 
           {{#if isClusterDataLoaded}}
             <a class="brand cluster-name" href="javascript:void(null);" {{bindAttr title="clusterName"}}>