Commit c500e958 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Added redirections to the index actions for the variables and triggers controllers

parent 2824c1d8
...@@ -3,6 +3,10 @@ class Projects::TriggersController < Projects::ApplicationController ...@@ -3,6 +3,10 @@ class Projects::TriggersController < Projects::ApplicationController
layout 'project_settings' layout 'project_settings'
def index
redirect_to namespace_project_settings_ci_cd_path(@project.namespace, @project)
end
def create def create
@trigger = project.triggers.new @trigger = project.triggers.new
@trigger.save @trigger.save
......
...@@ -3,6 +3,10 @@ class Projects::VariablesController < Projects::ApplicationController ...@@ -3,6 +3,10 @@ class Projects::VariablesController < Projects::ApplicationController
layout 'project_settings' layout 'project_settings'
def index
redirect_to namespace_project_settings_ci_cd_path(@project.namespace, @project)
end
def show def show
@variable = @project.variables.find(params[:id]) @variable = @project.variables.find(params[:id])
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment