Pārlūkot izejas kodu

AMBARI-5933. Cluster name and ambari icon should link to dashboard page. (yusaku)

Yusaku Sako 11 gadi atpakaļ
vecāks
revīzija
79fddb7daa

+ 1 - 1
ambari-web/app/messages.js

@@ -333,7 +333,7 @@ Em.I18n.translations = {
   'services.alerts.goToService': 'Go to Service',
   'services.alerts.goToNagios': 'Go to Nagios Web UI',
 
-  'topnav.logo.href':'http://ambari.apache.org/',
+  'topnav.logo.href':'/#/main/dashboard',
   'topnav.help.href':'https://cwiki.apache.org/confluence/display/AMBARI/Ambari',
 
   'installer.header':'Cluster Install Wizard',

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

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