summaryrefslogtreecommitdiff
path: root/app/presenters/ci/runner_presenter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/presenters/ci/runner_presenter.rb')
-rw-r--r--app/presenters/ci/runner_presenter.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/presenters/ci/runner_presenter.rb b/app/presenters/ci/runner_presenter.rb
new file mode 100644
index 00000000000..273328afc53
--- /dev/null
+++ b/app/presenters/ci/runner_presenter.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+module Ci
+ class RunnerPresenter < Gitlab::View::Presenter::Delegated
+ presents :runner
+
+ def locked?
+ read_attribute(:locked) && project_type?
+ end
+ alias_method :locked, :locked?
+ end
+end