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
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
......
......@@ -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
......
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