debian-mirror-gitlab/app/presenters/ci/variable_presenter.rb
2021-11-18 22:05:49 +05:30

23 lines
413 B
Ruby

# frozen_string_literal: true
module Ci
class VariablePresenter < Gitlab::View::Presenter::Delegated
presents ::Ci::Variable, as: :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