diff options
| author | Matija Čupić <matteeyah@gmail.com> | 2018-01-23 21:26:30 +0100 |
|---|---|---|
| committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-05 18:58:18 +0100 |
| commit | 1292c158ce909e9054f842a90095810c0d464e18 (patch) | |
| tree | 9c1c286e916857ea05a419b6649d099a9d3aef1c /app/presenters | |
| parent | 2592aec9e3a7a1b0d2689dd14cc6e0b9cea068cd (diff) | |
| download | gitlab-ce-1292c158ce909e9054f842a90095810c0d464e18.tar.gz | |
Update CI Variable presenters paths
Diffstat (limited to 'app/presenters')
| -rw-r--r-- | app/presenters/ci/group_variable_presenter.rb | 10 | ||||
| -rw-r--r-- | app/presenters/ci/variable_presenter.rb | 10 |
2 files changed, 6 insertions, 14 deletions
diff --git a/app/presenters/ci/group_variable_presenter.rb b/app/presenters/ci/group_variable_presenter.rb index 81fea106a5c..fb6dfcc1e4d 100644 --- a/app/presenters/ci/group_variable_presenter.rb +++ b/app/presenters/ci/group_variable_presenter.rb @@ -7,19 +7,15 @@ module Ci end def form_path - if variable.persisted? - group_variable_path(group, variable) - else - group_variables_path(group) - end + group_settings_ci_cd_path(group) end def edit_path - group_variable_path(group, variable) + group_variables_save_multiple_path(group) end def delete_path - group_variable_path(group, variable) + group_variables_save_multiple_path(group) end end end diff --git a/app/presenters/ci/variable_presenter.rb b/app/presenters/ci/variable_presenter.rb index 5d7998393a6..2e8f069646a 100644 --- a/app/presenters/ci/variable_presenter.rb +++ b/app/presenters/ci/variable_presenter.rb @@ -7,19 +7,15 @@ module Ci end def form_path - if variable.persisted? - project_variable_path(project, variable) - else - project_variables_path(project) - end + project_settings_ci_cd_path(project) end def edit_path - project_variable_path(project, variable) + project_variables_save_multiple_path(project) end def delete_path - project_variable_path(project, variable) + project_variables_save_multiple_path(project) end end end |
