You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by xi...@apache.org on 2014/06/17 03:19:16 UTC

git commit: AMBARI-6147. Ambari Dashboard page, click NameNode link returns wrong page. (xiwang)

Repository: ambari
Updated Branches:
  refs/heads/trunk e0ea325b5 -> b282aaf15


AMBARI-6147. Ambari Dashboard page, click NameNode link returns wrong page. (xiwang)


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

Branch: refs/heads/trunk
Commit: b282aaf15d56421ab7faeb4681043a5d08fd6893
Parents: e0ea325
Author: Xi Wang <xi...@apache.org>
Authored: Mon Jun 16 16:56:14 2014 -0700
Committer: Xi Wang <xi...@apache.org>
Committed: Mon Jun 16 18:14:56 2014 -0700

----------------------------------------------------------------------
 .../app/templates/main/dashboard/widgets/hdfs_links.hbs      | 8 ++++----
 .../app/templates/main/dashboard/widgets/mapreduce_links.hbs | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b282aaf1/ambari-web/app/templates/main/dashboard/widgets/hdfs_links.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/dashboard/widgets/hdfs_links.hbs b/ambari-web/app/templates/main/dashboard/widgets/hdfs_links.hbs
index 98340a2..2d26c3a 100644
--- a/ambari-web/app/templates/main/dashboard/widgets/hdfs_links.hbs
+++ b/ambari-web/app/templates/main/dashboard/widgets/hdfs_links.hbs
@@ -30,7 +30,7 @@
           <!--Active NameNode-->
           <tr>
             {{#if view.isActiveNNValid}}
-              <td><a href="#" {{action showDetails view.model.activeNameNode}}>{{t dashboard.widgets.HDFSLinks.activeNameNode}}</a></td>
+              <td><a href="#" {{action showDetails view.model.activeNameNode.host}}>{{t dashboard.widgets.HDFSLinks.activeNameNode}}</a></td>
             {{else}}
               <td><a class="disabled-hdfs-link">{{t dashboard.widgets.HDFSLinks.activeNameNode}}</a></td>
             {{/if}}
@@ -43,7 +43,7 @@
                 <td><a href="#" {{action filterHosts view.twoStandbyComponent}}>{{t dashboard.widgets.HDFSLinks.standbyNameNodes}}</a></td>
               {{else}}
                 <!--One Standby NameNode-->
-                <td><a href="#" {{action showDetails view.model.standbyNameNode}}>{{t dashboard.widgets.HDFSLinks.standbyNameNode}}</a></td>
+                <td><a href="#" {{action showDetails view.model.standbyNameNode.host}}>{{t dashboard.widgets.HDFSLinks.standbyNameNode}}</a></td>
               {{/if}}
             {{else}}
               <td><a class="disabled-hdfs-link">{{t dashboard.widgets.HDFSLinks.standbyNameNode}}</a></td>
@@ -60,11 +60,11 @@
         <table>
           <!--NameNode-->
           <tr>
-            <td><a href="#" {{action showDetails view.model.nameNode}}>{{t dashboard.services.hdfs.nanmenode}}</a></td>
+            <td><a href="#" {{action showDetails view.model.nameNode.host}}>{{t dashboard.services.hdfs.nanmenode}}</a></td>
           </tr>
           <!--SecondaryNameNode-->
           <tr>
-            <td><a href="#" {{action showDetails view.model.snameNode}}>{{t dashboard.services.hdfs.snanmenode}}</a></td>
+            <td><a href="#" {{action showDetails view.model.snameNode.host}}>{{t dashboard.services.hdfs.snanmenode}}</a></td>
           </tr>
           <!--Data Nodes-->
           <tr>

http://git-wip-us.apache.org/repos/asf/ambari/blob/b282aaf1/ambari-web/app/templates/main/dashboard/widgets/mapreduce_links.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/dashboard/widgets/mapreduce_links.hbs b/ambari-web/app/templates/main/dashboard/widgets/mapreduce_links.hbs
index 85365e7..15c8a18 100644
--- a/ambari-web/app/templates/main/dashboard/widgets/mapreduce_links.hbs
+++ b/ambari-web/app/templates/main/dashboard/widgets/mapreduce_links.hbs
@@ -28,7 +28,7 @@
         <table>
           <!--jobTracker-->
           <tr>
-            <td><a href="#" {{action showDetails view.model.jobTracker}}>{{t services.service.summary.jobTracker}}</a></td>
+            <td><a href="#" {{action showDetails view.model.jobTracker.host}}>{{t services.service.summary.jobTracker}}</a></td>
           </tr>
           <!--taskTrackers-->
           <tr>