|
@@ -21,29 +21,24 @@
|
|
|
<div class="navbar navbar-static-top">
|
|
|
<div class="navbar-inner">
|
|
|
<div class="container main-container">
|
|
|
- {{#if isClusterDataLoaded}}
|
|
|
+ {{#if isExistingClusterDataLoaded}}
|
|
|
<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>
|
|
|
+ <a class="brand cluster-name" href="javascript:void(null);" {{bindAttr title="clusterName"}}>
|
|
|
+ <span {{action "showPopup" target="App.router.backgroundOperationsController"}} >{{clusterDisplayName}} </span>
|
|
|
+ {{#with App.router.backgroundOperationsController}}
|
|
|
+ {{#if allOperationsCount}}
|
|
|
+ <i class="icon-caret-left ops-count"></i><span class="label operations-count" {{action "showPopup" target="App.router.backgroundOperationsController"}}> {{allOperationsCount}} {{t ops}}</span>
|
|
|
+ {{else}}
|
|
|
+ <i class="icon-caret-left"></i><span class="label" {{action "showPopup" target="App.router.backgroundOperationsController"}}>{{allOperationsCount}} {{t ops}}</span>
|
|
|
+ {{/if}}
|
|
|
+ {{/with}}
|
|
|
+ </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}}
|
|
|
- {{#if clusterExists}}
|
|
|
- <a class="brand cluster-name" href="javascript:void(null);" {{bindAttr title="clusterName"}}>
|
|
|
- <span {{action "showPopup" target="App.router.backgroundOperationsController"}} >{{clusterDisplayName}} </span>
|
|
|
- {{#with App.router.backgroundOperationsController}}
|
|
|
- {{#if allOperationsCount}}
|
|
|
- <i class="icon-caret-left ops-count"></i><span class="label operations-count" {{action "showPopup" target="App.router.backgroundOperationsController"}}> {{allOperationsCount}} {{t ops}}</span>
|
|
|
- {{else}}
|
|
|
- <i class="icon-caret-left"></i><span class="label" {{action "showPopup" target="App.router.backgroundOperationsController"}}>{{allOperationsCount}} {{t ops}}</span>
|
|
|
- {{/if}}
|
|
|
- {{/with}}
|
|
|
- </a>
|
|
|
- {{/if}}
|
|
|
- {{/if}}
|
|
|
-
|
|
|
{{#if App.router.loggedIn}}
|
|
|
<div class="top-nav-user btn-group">
|
|
|
<button class="btn dropdown-toggle" data-toggle="dropdown">
|