diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-01-30 09:36:49 -0600 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-02-06 14:51:19 -0600 |
commit | c500e958fbdff0643865134b35f879b06b2347ac (patch) | |
tree | 4477465457144683d9381a7bfbb807f01651397b | |
parent | 2824c1d8d7247f6d0bbb1d5fe703490fdbd4ed1a (diff) | |
download | gitlab-ce-c500e958fbdff0643865134b35f879b06b2347ac.tar.gz |
Added redirections to the index actions for the variables and triggers controllers
-rw-r--r-- | app/controllers/projects/triggers_controller.rb | 4 | ||||
-rw-r--r-- | app/controllers/projects/variables_controller.rb | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/projects/triggers_controller.rb b/app/controllers/projects/triggers_controller.rb index 99668433190..224a25eec99 100644 --- a/app/controllers/projects/triggers_controller.rb +++ b/app/controllers/projects/triggers_controller.rb @@ -3,6 +3,10 @@ class Projects::TriggersController < Projects::ApplicationController layout 'project_settings' + def index + redirect_to namespace_project_settings_ci_cd_path(@project.namespace, @project) + end + def create @trigger = project.triggers.new @trigger.save diff --git a/app/controllers/projects/variables_controller.rb b/app/controllers/projects/variables_controller.rb index dd5f6a771d2..574f6549645 100644 --- a/app/controllers/projects/variables_controller.rb +++ b/app/controllers/projects/variables_controller.rb @@ -3,6 +3,10 @@ class Projects::VariablesController < Projects::ApplicationController layout 'project_settings' + def index + redirect_to namespace_project_settings_ci_cd_path(@project.namespace, @project) + end + def show @variable = @project.variables.find(params[:id]) end |