diff options
author | Kevin Boyd <kboyd@perforce.com> | 2014-08-29 15:56:26 -0700 |
---|---|---|
committer | Kevin Boyd <kboyd@perforce.com> | 2014-08-29 15:56:26 -0700 |
commit | 75b0ef82ba81ae6892cb14756fee2500b8b2d56f (patch) | |
tree | d949c2f094405e3c3f495f9d3265319e12a2bb4a | |
parent | c9054319c8f64e7f91cf062e36434da78979fa76 (diff) | |
download | gitlab-ce-75b0ef82ba81ae6892cb14756fee2500b8b2d56f.tar.gz |
Fine-tune the Remove Project redirect. Now it redirects to admin_projects_path and shows a flash message confirming the action has been taken.
-rw-r--r-- | app/controllers/projects_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index f23afaf28fa..42f3d901eab 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -103,7 +103,10 @@ class ProjectsController < ApplicationController ::Projects::DestroyService.new(@project, current_user, {}).execute respond_to do |format| - format.html { redirect_to root_path } + format.html do + flash[:alert] = "Project deleted." + redirect_to admin_projects_path + end end end |