2017-03-20 18:05:52 -04:00
|
|
|
module Ci
|
2017-03-28 13:47:11 -04:00
|
|
|
class PipelinePresenter < Gitlab::View::Presenter::Delegated
|
2017-03-20 18:05:52 -04:00
|
|
|
presents :pipeline
|
|
|
|
|
|
|
|
def status_title
|
2017-04-06 09:32:56 -04:00
|
|
|
if auto_canceled?
|
|
|
|
"Pipeline is redundant and is auto-canceled by Pipeline ##{auto_canceled_by_id}"
|
|
|
|
end
|
2017-03-20 18:05:52 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|