debian-mirror-gitlab/app/presenters/ci/group_variable_presenter.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
409 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2017-09-10 17:25:29 +05:30
module Ci
class GroupVariablePresenter < Gitlab::View::Presenter::Delegated
2021-11-18 22:05:49 +05:30
presents ::Ci::GroupVariable, as: :variable
2017-09-10 17:25:29 +05:30
def placeholder
'GROUP_VARIABLE'
end
def form_path
2018-03-17 18:26:18 +05:30
group_settings_ci_cd_path(group)
2017-09-10 17:25:29 +05:30
end
def edit_path
2018-03-17 18:26:18 +05:30
group_variables_path(group)
2017-09-10 17:25:29 +05:30
end
def delete_path
2018-03-17 18:26:18 +05:30
group_variables_path(group)
2017-09-10 17:25:29 +05:30
end
end
end