]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3972 Add link of the last part of the Quality Profiles breadcrumb
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 5 Dec 2012 14:23:41 +0000 (15:23 +0100)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 5 Dec 2012 14:46:23 +0000 (15:46 +0100)
sonar-server/src/main/webapp/WEB-INF/app/controllers/alerts_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb

index cbf41726cb68d6f9864b9362542525f2b619345e..1a6271f548f1bbde289dc3cbb8a6813014fb83bc 100644 (file)
@@ -34,7 +34,7 @@ class AlertsController < ApplicationController
     @profile = Profile.find(params[:id])
     @alerts = @profile.alerts.sort
     @alert=Alert.new
-    add_breadcrumbs ProfilesController::ROOT_BREADCRUMB, Api::Utils.language_name(@profile.language), @profile.name
+    add_breadcrumbs ProfilesController::ROOT_BREADCRUMB, Api::Utils.language_name(@profile.language), {:name => @profile.name, :url => {:controller => 'rules_configuration', :action => 'index', :id => @profile.id}}
   end
 
   #
index 124ca9d1c136966b5193f7d6e602b6c1275b6768..abb7c9d3701adc192b1e724b64752c0623a33c5c 100644 (file)
@@ -511,6 +511,6 @@ class ProfilesController < ApplicationController
   end
 
   def set_profile_breadcrumbs
-    add_breadcrumbs ROOT_BREADCRUMB, Api::Utils.language_name(@profile.language), @profile.name
+    add_breadcrumbs ROOT_BREADCRUMB, Api::Utils.language_name(@profile.language), {:name => @profile.name, :url => {:controller => 'rules_configuration', :action => 'index', :id => @profile.id}}
   end
 end
index 7b1298d66ac1868c9af2c851f269c615d31f1203..b47ce54d5e627fdc323a4e0a97678debf4b7999b 100644 (file)
@@ -39,7 +39,7 @@ class RulesConfigurationController < ApplicationController
     require_parameters :id
 
     @profile = Profile.find(params[:id])
-    add_breadcrumbs ProfilesController::ROOT_BREADCRUMB, Api::Utils.language_name(@profile.language), @profile.name
+    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()