summaryrefslogtreecommitdiff
path: root/app/presenters/ci/variable_presenter.rb
blob: 96159f88c5928a014b04b562346f30c34e2dd2d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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