From 78f4c40772869e8864699e7fa49ce52b50e322e0 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 16 Nov 2016 15:29:49 +0100 Subject: [PATCH] SONAR-8382 move About link to the top nav --- .../src/main/js/main/nav/global/global-nav-menu.js | 11 +++++++++++ .../main/js/main/nav/templates/nav-shortcuts-help.hbs | 1 - .../webapp/WEB-INF/app/views/layouts/_layout.html.erb | 1 - 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/main/nav/global/global-nav-menu.js b/server/sonar-web/src/main/js/main/nav/global/global-nav-menu.js index 7d25c1b1a25..a002d6422fa 100644 --- a/server/sonar-web/src/main/js/main/nav/global/global-nav-menu.js +++ b/server/sonar-web/src/main/js/main/nav/global/global-nav-menu.js @@ -29,6 +29,15 @@ export default React.createClass({ return { globalDashboards: [], globalPages: [] }; }, + renderAbout () { + const url = window.baseUrl + '/about'; + return ( +
  • + About +
  • + ); + }, + renderProjects () { const controller = window.SS.user ? '/projects/favorite' : '/projects'; const url = window.baseUrl + controller; @@ -118,12 +127,14 @@ export default React.createClass({ render () { return ( ); diff --git a/server/sonar-web/src/main/js/main/nav/templates/nav-shortcuts-help.hbs b/server/sonar-web/src/main/js/main/nav/templates/nav-shortcuts-help.hbs index bb29bf9597b..22356c886e4 100644 --- a/server/sonar-web/src/main/js/main/nav/templates/nav-shortcuts-help.hbs +++ b/server/sonar-web/src/main/js/main/nav/templates/nav-shortcuts-help.hbs @@ -8,7 +8,6 @@ Documentation - Get Support - Plugins - - About - Web API diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb index 15022ecb49e..1a2672d9fec 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb @@ -56,7 +56,6 @@ Documentation - Get Support - Plugins - - About - Web API -- 2.39.5