diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-29 00:10:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-29 00:10:21 +0300 |
commit | b27ec7e464fbdb37c2be961a856d6eb99caeb767 (patch) | |
tree | b6fefe378371292e2ffd1de6f47e241df3d4aa2c /app/presenters/ml | |
parent | 46c019ae69759f91eb6e71e4aa4dd9b23b136f60 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters/ml')
-rw-r--r-- | app/presenters/ml/candidate_details_presenter.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/presenters/ml/candidate_details_presenter.rb b/app/presenters/ml/candidate_details_presenter.rb index 7f0bd9d6c11..29d4617903f 100644 --- a/app/presenters/ml/candidate_details_presenter.rb +++ b/app/presenters/ml/candidate_details_presenter.rb @@ -4,8 +4,9 @@ module Ml class CandidateDetailsPresenter include Rails.application.routes.url_helpers - def initialize(candidate) + def initialize(candidate, include_ci_job = false) @candidate = candidate + @include_ci_job = include_ci_job end def present @@ -32,10 +33,10 @@ module Ml private - attr_reader :candidate + attr_reader :candidate, :include_ci_job def job_info - return unless candidate.from_ci? + return unless include_ci_job && candidate.from_ci? build = candidate.ci_build |