057c0d7a5c
Not only tracking auto-cancelling in pipelines, we'll also track this in jobs because pipelines could be retried and the information would get lost when this happened. Also erase auto-cancelling relation for pipelines when they're retried.
11 lines
259 B
Ruby
11 lines
259 B
Ruby
module Ci
|
|
class PipelinePresenter < Gitlab::View::Presenter::Delegated
|
|
presents :pipeline
|
|
|
|
def status_title
|
|
if auto_canceled?
|
|
"Pipeline is redundant and is auto-canceled by Pipeline ##{auto_canceled_by_id}"
|
|
end
|
|
end
|
|
end
|
|
end
|