Added redirections to the index actions for the variables and triggers controllers
This commit is contained in:
parent
2824c1d8d7
commit
c500e958fb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue