From d2f1db9dff97371a44386807d5be2bf2098fe10b Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Thu, 6 Dec 2012 10:26:55 +0100 Subject: [PATCH] SONAR-3972 Fix regression --- .../main/webapp/WEB-INF/app/controllers/alerts_controller.rb | 2 +- .../webapp/WEB-INF/app/controllers/comparison_controller.rb | 2 +- .../webapp/WEB-INF/app/controllers/dependencies_controller.rb | 2 +- .../main/webapp/WEB-INF/app/controllers/profiles_controller.rb | 2 +- .../WEB-INF/app/controllers/rules_configuration_controller.rb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/alerts_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/alerts_controller.rb index 1a6271f548f..f28ddf424a8 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/alerts_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/alerts_controller.rb @@ -22,7 +22,7 @@ class AlertsController < ApplicationController verify :method => :post, :only => ['create', 'update', 'delete'], :redirect_to => { :action => 'index' } before_filter :admin_required, :except => [ 'index' ] - SECTION=Navigation::SECTION_RESOURCE + SECTION=Navigation::SECTION_HOME # # diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/comparison_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/comparison_controller.rb index 6d95334726f..fb56070f4b2 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/comparison_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/comparison_controller.rb @@ -20,7 +20,7 @@ class ComparisonController < ApplicationController - SECTION=Navigation::SECTION_RESOURCE + SECTION=Navigation::SECTION_HOME def index snapshots = [] diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/dependencies_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/dependencies_controller.rb index c00e28ebc75..cbc4525e0f0 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/dependencies_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/dependencies_controller.rb @@ -19,7 +19,7 @@ # class DependenciesController < ApplicationController - SECTION=Navigation::SECTION_RESOURCE + SECTION=Navigation::SECTION_HOME SEARCH_MINIMUM_SIZE=3 QUALIFIERS=['TRK', 'BRC', 'LIB'] diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb index abb7c9d3701..ee1ce27ace3 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb @@ -22,7 +22,7 @@ class ProfilesController < ApplicationController # the backup action is allow to non-admin users : see http://jira.codehaus.org/browse/SONAR-2039 before_filter :admin_required, :only => ['create', 'delete', 'set_as_default', 'copy', 'restore', 'change_parent', 'set_projects', 'rename_form', 'rename'] - SECTION=Navigation::SECTION_RESOURCE + SECTION=Navigation::SECTION_HOME ROOT_BREADCRUMB = {:name => Api::Utils.message('quality_profiles.page'), :url => {:controller => 'profiles', :action => 'index'}} diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb index b47ce54d5e6..c5dad2531db 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb @@ -21,7 +21,7 @@ require 'cgi' class RulesConfigurationController < ApplicationController - SECTION=Navigation::SECTION_RESOURCE + SECTION=Navigation::SECTION_HOME STATUS_ACTIVE = "ACTIVE" STATUS_INACTIVE = "INACTIVE" -- 2.39.5