aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2013-07-31 11:32:31 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2013-07-31 11:32:31 +0200
commite4406ff8a0d51ee49cacd46e141cd4df4674aec4 (patch)
tree64ae140e2f2f501ebd976846edbef4ea39457ae4 /sonar-server
parenta5dc30e14f1d9b7efc86968b2c49889d6b61b2f4 (diff)
downloadsonarqube-e4406ff8a0d51ee49cacd46e141cd4df4674aec4.tar.gz
sonarqube-e4406ff8a0d51ee49cacd46e141cd4df4674aec4.zip
SONAR-4459 The "Quality Profiles" in the breadcrumb is not translated
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/alerts_controller.rb2
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb10
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb2
3 files changed, 8 insertions, 6 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 55f1f08497b..599648fa1fe 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
@@ -31,7 +31,7 @@ class AlertsController < ApplicationController
@profile = Profile.find(params[:id])
@alerts = @profile.valid_alerts.sort
@alert=Alert.new
- add_breadcrumbs ProfilesController::ROOT_BREADCRUMB, Api::Utils.language_name(@profile.language), {:name => @profile.name, :url => {:controller => 'rules_configuration', :action => 'index', :id => @profile.id}}
+ add_breadcrumbs ProfilesController::root_breadcrumb, Api::Utils.language_name(@profile.language), {:name => @profile.name, :url => {:controller => 'rules_configuration', :action => 'index', :id => @profile.id}}
end
#
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 3b3ae453aad..7c6447e77c8 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
@@ -19,13 +19,15 @@
#
class ProfilesController < ApplicationController
- ROOT_BREADCRUMB = {:name => Api::Utils.message('quality_profiles.page'), :url => {:controller => 'profiles', :action => 'index'}}
+ def self.root_breadcrumb
+ {:name => Api::Utils.message('quality_profiles.page'), :url => {:controller => 'profiles', :action => 'index'}}
+ end
before_filter :hide_sidebar
# GET /profiles/index
def index
- add_breadcrumbs ROOT_BREADCRUMB
+ add_breadcrumbs ProfilesController::root_breadcrumb
@profiles = Profile.all
Api::Utils.insensitive_sort!(@profiles){|profile| profile.name}
end
@@ -373,7 +375,7 @@ class ProfilesController < ApplicationController
end
end
end
- add_breadcrumbs ROOT_BREADCRUMB, Api::Utils.message('compare')
+ add_breadcrumbs ProfilesController::root_breadcrumb, Api::Utils.message('compare')
end
DIFF_IN1=1
@@ -519,6 +521,6 @@ class ProfilesController < ApplicationController
end
def set_profile_breadcrumbs
- add_breadcrumbs ROOT_BREADCRUMB, Api::Utils.language_name(@profile.language), {:name => @profile.name, :url => {:controller => 'rules_configuration', :action => 'index', :id => @profile.id}}
+ add_breadcrumbs ProfilesController::root_breadcrumb, Api::Utils.language_name(@profile.language), {:name => @profile.name, :url => {:controller => 'rules_configuration', :action => 'index', :id => @profile.id}}
end
end
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 1daadeaba3d..1450440a5b2 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
@@ -33,7 +33,7 @@ class RulesConfigurationController < ApplicationController
require_parameters :id
@profile = Profile.find(params[:id])
- add_breadcrumbs ProfilesController::ROOT_BREADCRUMB, Api::Utils.language_name(@profile.language),
+ add_breadcrumbs ProfilesController::root_breadcrumb, Api::Utils.language_name(@profile.language),
{:name => @profile.name, :url => {:controller => 'rules_configuration', :action => 'index', :id => @profile.id}}
init_params()