diff options
Diffstat (limited to 'app/presenters/ci/build_presenter.rb')
-rw-r--r-- | app/presenters/ci/build_presenter.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/presenters/ci/build_presenter.rb b/app/presenters/ci/build_presenter.rb index 384cb3285fc..06ed6791bb7 100644 --- a/app/presenters/ci/build_presenter.rb +++ b/app/presenters/ci/build_presenter.rb @@ -12,11 +12,11 @@ module Ci erased_by.name if erased_by_user? end - def status_title + def status_title(status = detailed_status) if auto_canceled? "Job is redundant and is auto-canceled by Pipeline ##{auto_canceled_by_id}" else - tooltip_for_badge + tooltip_for_badge(status) end end @@ -41,8 +41,8 @@ module Ci private - def tooltip_for_badge - detailed_status.badge_tooltip.capitalize + def tooltip_for_badge(status) + status.badge_tooltip.capitalize end def detailed_status |