From 7a8f3f237e9eb644da830a79889d530c1e8f52ba Mon Sep 17 00:00:00 2001 From: Sunil G Date: Tue, 7 Feb 2017 21:45:40 +0530 Subject: [PATCH] YARN-5917. Make navigation link active when selecting sub tabs in 'Applications' and 'Nodes' page for new UI. Contributed by Kai Sasaki. --- .../src/main/webapp/app/templates/application.hbs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/application.hbs b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/application.hbs index 7783db4040..4a2ba386ef 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/application.hbs +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/application.hbs @@ -46,13 +46,13 @@ (current) {{/link-to}} {{/link-to}} - {{#link-to 'yarn-apps.apps' tagName="li"}} - {{#link-to 'yarn-apps.apps' class="navigation-link"}}Applications + {{#link-to 'yarn-apps.apps' tagName="li" currentWhen="yarn-apps.apps yarn-apps.services"}} + {{#link-to 'yarn-apps.apps' class="navigation-link" currentWhen="yarn-apps.apps yarn-apps.services"}}Applications (current) {{/link-to}} {{/link-to}} - {{#link-to 'yarn-nodes.table' tagName="li"}} - {{#link-to 'yarn-nodes.table' class="navigation-link"}}Nodes + {{#link-to 'yarn-nodes.table' tagName="li" currentWhen="yarn-nodes.table yarn-nodes.heatmap"}} + {{#link-to 'yarn-nodes.table' class="navigation-link" currentWhen="yarn-nodes.table yarn-nodes.heatmap"}}Nodes (current) {{/link-to}} {{/link-to}}