debian-mirror-gitlab/app/presenters/ci/variable_presenter.rb
2018-03-17 18:26:18 +05:30

21 lines
362 B
Ruby

module Ci
class VariablePresenter < Gitlab::View::Presenter::Delegated
presents :variable
def placeholder
'PROJECT_VARIABLE'
end
def form_path
project_settings_ci_cd_path(project)
end
def edit_path
project_variables_path(project)
end
def delete_path
project_variables_path(project)
end
end
end