From 4b19308900c745166a8022d6f6e9091deb2ced5c Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Tue, 4 Dec 2012 11:49:09 +0100 Subject: [PATCH] SONAR-3972 Add "Projects" top-menu entry --- .../resources/org/sonar/l10n/core.properties | 7 ++-- .../app/views/layouts/_layout.html.erb | 1 + .../app/views/layouts/_menu_projects.html.erb | 42 +++++++++++++++++++ .../layouts/_menu_resource_settings.html.erb | 2 +- .../app/views/layouts/_user_panel.html.erb | 29 +------------ .../src/main/webapp/stylesheets/layout.css | 28 ++++--------- .../src/main/webapp/stylesheets/style.css | 6 ++- 7 files changed, 62 insertions(+), 53 deletions(-) create mode 100644 sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.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 eb7bc0a590e..1183ce06a7e 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 @@ -299,10 +299,9 @@ layout.ie6_warn=Your web browser is outdated. This website may not display corre layout.dashboards=Dashboards layout.reviews=Reviews layout.configuration=Configuration +layout.projects=Projects +layout.recent_activity=Recent Activity layout.user_panel.my_profile=My profile -layout.user_panel.recent_history.title=Recent history -layout.user_panel.me=Me -layout.user_panel.anonymous_user=Anonymous sidebar.project_settings=Configuration sidebar.security=Security @@ -352,7 +351,7 @@ resource_deletion.page={0} Deletion update_key.page=Update Key project_quality_profiles.page=Quality Profiles bulk_deletion.page=Bulk Deletion -comparison.page=Comparison +comparison.page=Compare # GWT pages 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 544c93d9312..d0026cd504b 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,7 @@
  • <%= message('layout.dashboards') -%>
  • + <%= render 'layouts/menu_projects' -%>
  • <%= message('layout.measures') -%>
  • diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb new file mode 100644 index 00000000000..b83744ef8e0 --- /dev/null +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_projects.html.erb @@ -0,0 +1,42 @@ + + + + +
  • + <%= message('layout.projects') -%> + + + +
  • + + \ No newline at end of file diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb index 9771d312d7c..f2b145f85d7 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_resource_settings.html.erb @@ -1,5 +1,5 @@
  • - <%= message('layout.configuration') -%> + <%= message('layout.configuration') -%>