diff options
Diffstat (limited to 'app/presenters/ci/group_variable_presenter.rb')
-rw-r--r-- | app/presenters/ci/group_variable_presenter.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/presenters/ci/group_variable_presenter.rb b/app/presenters/ci/group_variable_presenter.rb new file mode 100644 index 00000000000..98d68bc7a83 --- /dev/null +++ b/app/presenters/ci/group_variable_presenter.rb @@ -0,0 +1,21 @@ +module Ci + class GroupVariablePresenter < Gitlab::View::Presenter::Delegated + presents :variable + + def placeholder + 'GROUP_VARIABLE' + end + + def form_path + group_settings_ci_cd_path(group) + end + + def edit_path + group_variables_path(group) + end + + def delete_path + group_variables_path(group) + end + end +end |