diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-03-31 10:20:24 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-03-31 10:20:24 +0200 |
commit | 42be4e6f92aa002f3c8f5b05bc93ce11f659f200 (patch) | |
tree | 4a764684b621dfbde75d87e9d22f387a7b86e0bc /server | |
parent | 0b61632730360e53b126016ea47cf56a0dacdd16 (diff) | |
parent | d8e075635331f20695f99212c3d07689e44577e1 (diff) | |
download | sonarqube-42be4e6f92aa002f3c8f5b05bc93ce11f659f200.tar.gz sonarqube-42be4e6f92aa002f3c8f5b05bc93ce11f659f200.zip |
Merge branch 'feature/web/default_overview'
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb index 9ec1e477893..338d95ed2ac 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb @@ -29,6 +29,7 @@ class DashboardController < ApplicationController if !@resource || @resource.display_dashboard? redirect_if_bad_component() load_dashboard() + redirect_if_overview() load_authorized_widget_definitions() else if !@resource || !@snapshot @@ -214,6 +215,12 @@ class DashboardController < ApplicationController end end + def redirect_if_overview + if @resource && !params[:did] && !params[:name] + redirect_to :controller => 'overview', :action => 'index', :id => @resource.key + end + end + def project_not_found flash[:error] = message('dashboard.project_not_found') redirect_to :action => :index |