summaryrefslogtreecommitdiff
path: root/app/presenters
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-07-18 15:09:08 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-07-18 15:09:08 +0000
commitcc1066db64a2a283a3d229b9bbb67c01716ca871 (patch)
treec5a518fabe9bb87b17a1f99b6c2616144170ebeb /app/presenters
parent5c5d24f032b67d98452f391192386e330a0f880c (diff)
downloadgitlab-ce-cc1066db64a2a283a3d229b9bbb67c01716ca871.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/ci/build_presenter.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/app/presenters/ci/build_presenter.rb b/app/presenters/ci/build_presenter.rb
index 0be684901d5..513fcd90cf8 100644
--- a/app/presenters/ci/build_presenter.rb
+++ b/app/presenters/ci/build_presenter.rb
@@ -4,16 +4,6 @@ module Ci
class BuildPresenter < ProcessablePresenter
presents ::Ci::Build, as: :build
- def erased_by_user?
- # Build can be erased through API, therefore it does not have
- # `erased_by` user assigned in that case.
- erased? && erased_by
- end
-
- def erased_by_name
- erased_by.name if erased_by_user?
- end
-
def status_title(status = detailed_status)
if auto_canceled?
"Job is redundant and is auto-canceled by Pipeline ##{auto_canceled_by_id}"
@@ -33,10 +23,6 @@ module Ci
end
end
- def tooltip_message
- "#{build.name} - #{detailed_status.status_tooltip}"
- end
-
def execute_in
scheduled? && scheduled_at && [0, scheduled_at - Time.now].max
end