diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-02-02 13:50:25 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-02-02 13:50:25 +0100 |
commit | 97acc2cbfd8af6e526d87f64b9db44015e26ab3b (patch) | |
tree | 0e8ff23d0c15d139a939b43907c72bf60aa174bb | |
parent | 93b4b26c84224a8b37e4467d3c3d3c268ec113ab (diff) | |
download | sonarqube-97acc2cbfd8af6e526d87f64b9db44015e26ab3b.tar.gz sonarqube-97acc2cbfd8af6e526d87f64b9db44015e26ab3b.zip |
SONAR-6142 Update link of "Package cycles" on the "Quality Gate" widget
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb index e9ee491156b..a253d8d41f6 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb @@ -232,7 +232,11 @@ module ApplicationHelper url += 'resolved=false' end else - url = url_for(options.merge({:controller => 'drilldown', :action => 'measures', :metric => metric_key, :id => options[:resource]||@resource.id})) + if metric_key == 'package_cycles' + url = url_for(options.merge({:controller => 'design', :action => 'index', :id => options[:resource]||@resource.key})) + else + url = url_for(options.merge({:controller => 'drilldown', :action => 'measures', :metric => metric_key, :id => options[:resource]||@resource.id})) + end end url |