2017-09-10 17:25:29 +05:30
|
|
|
module Ci
|
|
|
|
class VariablePresenter < Gitlab::View::Presenter::Delegated
|
|
|
|
presents :variable
|
|
|
|
|
|
|
|
def placeholder
|
|
|
|
'PROJECT_VARIABLE'
|
|
|
|
end
|
|
|
|
|
|
|
|
def form_path
|
2018-03-17 18:26:18 +05:30
|
|
|
project_settings_ci_cd_path(project)
|
2017-09-10 17:25:29 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def edit_path
|
2018-03-17 18:26:18 +05:30
|
|
|
project_variables_path(project)
|
2017-09-10 17:25:29 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def delete_path
|
2018-03-17 18:26:18 +05:30
|
|
|
project_variables_path(project)
|
2017-09-10 17:25:29 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|