From a42d8c32850f8c699e51d5a7edf411082907390a Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 25 Aug 2014 15:14:19 +0600 Subject: [PATCH] DSM & Libraries: drop entry points for old pages --- .../app/views/layouts/_layout.html.erb | 26 +++++++------------ .../resources/org/sonar/l10n/core.properties | 2 ++ 2 files changed, 11 insertions(+), 17 deletions(-) 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 0bb0f9e1ae3..d9c1cad458a 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 @@ -89,27 +89,19 @@ <% end %> <% if @snapshot %> -
  • - -
  • - <%= message('components.page') -%> -
  • -
  • - "><%= message('issues_drilldown.page') -%> -
  • - <% project_metrics = @project.last_snapshot.metric_keys.to_java(:string) if @project.last_snapshot - controller.java_facade.getPages(Navigation::SECTION_RESOURCE.key, @project.scope, @project.qualifier, @project.language, project_metrics).each do |page| - page_url = (page.isController() ? "#{page.getId()}?id=#{@project.id}" : "/plugins/resource/#{@project.id}?page=#{page.getId()}") - %> -
  • - <%= h message(page.getId() + '.page', :default => page.getTitle()) -%> +
  • + +
  • + <%= message('components.page') -%> +
  • +
  • + "><%= message('issues_drilldown.page') -%>
  • - <% end %>
  • - Design (NEW) + <%= message('design.page') -%>
  • - Libraries (NEW) + <%= message('libraries.page') -%>
  • <% if controller.java_facade.getResourceTypeBooleanProperty(@project.qualifier, 'comparable') %>
  • diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index 1fa950fe99d..6ec7275a21f 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -517,6 +517,8 @@ issues_drilldown.page=Issues Drilldown source.page=Source timemachine.page=Time Machine comparison.page=Compare +design.page=Design +libraries.page=Libraries # GWT pages org.sonar.plugins.design.ui.page.DesignPage.page=Design -- 2.39.5