From cabadc2d05b0670a8810452fba331c414b807412 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Mon, 3 Dec 2012 18:22:46 +0100 Subject: [PATCH] SONAR-3972 Move project admin entries to a popup-menu on the top-right --- .../resources/org/sonar/l10n/core.properties | 1 + .../app/views/layouts/_breadcrumb.html.erb | 22 ++++++--- .../app/views/layouts/_layout.html.erb | 49 +------------------ .../layouts/_menu_resource_settings.html.erb | 41 ++++++++++++++++ .../app/views/layouts/_user_panel.html.erb | 1 - .../src/main/webapp/stylesheets/layout.css | 5 ++ .../src/main/webapp/stylesheets/style.css | 2 + 7 files changed, 65 insertions(+), 56 deletions(-) create mode 100644 sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb 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 2a3a3479df7..eb7bc0a590e 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 @@ -298,6 +298,7 @@ layout.evaluation=Embedded database should be used for evaluation purpose only layout.ie6_warn=Your web browser is outdated. This website may not display correctly. layout.dashboards=Dashboards layout.reviews=Reviews +layout.configuration=Configuration layout.user_panel.my_profile=My profile layout.user_panel.recent_history.title=Recent history layout.user_panel.me=Me diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb index bd1ffc42a10..b80b9dfb1e6 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_breadcrumb.html.erb @@ -1,10 +1,17 @@ +<% + displayed_resource = @resource || @project +%> + <% if @breadcrumbs %>
-<% elsif @resource || @project - displayed_resource = @resource || @project -%> +<% elsif displayed_resource %>