From 68a6a7cbaf282d766915345b2800fee11fc626a3 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Mon, 26 Nov 2012 11:46:55 +0100 Subject: [PATCH] SONAR-3972 Improve top bar & side bar menu entries --- .../src/main/resources/org/sonar/l10n/core.properties | 1 + .../webapp/WEB-INF/app/views/layouts/_layout.html.erb | 10 +++++++++- .../webapp/WEB-INF/app/views/layouts/_tools.html.erb | 5 ----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties index 7f341d4b451..5c07b4c2d2a 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -303,6 +303,7 @@ layout.user_panel.me=Me layout.user_panel.anonymous_user=Anonymous layout.user_panel.non_authenticated_user=Unauthenticated user +sidebar.tools=Tools sidebar.project_settings=Configuration sidebar.security=Security sidebar.system=System diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb index b7b68198498..85997110201 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb @@ -14,6 +14,9 @@
  • <%= message('layout.dashboards') -%>
  • +
  • + <%= message('layout.tools.quality_profiles') -%> +
  • <%= render 'layouts/tools' -%> @@ -26,6 +29,9 @@
  • <%= message('layout.print') -%>
  • +
  • + <%= message('layout.configuration') -%> +
  • <% unless logged_in? %>
  • <%= message('layout.login') -%>
  • <% end %> @@ -64,11 +70,12 @@ "><%= active_dashboard.dashboard.name(true) -%> <% end %> + +
  • <%= message('sidebar.tools') -%>
  • <%= message('components.page') -%>
  • "><%= message('violations_drilldown.page') -%> -
  • <%= message('clouds.page') -%>
  • <% controller.java_facade.getPages(Navigation::SECTION_RESOURCE, @project.scope, @project.qualifier, @project.language, @project.last_snapshot.metric_keys.to_java(:string)).each do |page| @@ -78,6 +85,7 @@ <%= message(page.getId() + '.page', :default => page.getTitle()) %> <% end %> + <% if has_role?(:admin, @project) %>
  • <%= message('sidebar.project_settings') -%>
  • <% if (@project.project?) %> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_tools.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_tools.html.erb index 86dc82f8f44..ecd47f15adf 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_tools.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_tools.html.erb @@ -3,12 +3,7 @@ -- 2.39.5