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

This commit is contained in:
Jose Ivan Vargas 2017-01-30 09:36:49 -06:00
parent 2824c1d8d7
commit c500e958fb
2 changed files with 8 additions and 0 deletions

View File

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

View File

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