debian-mirror-gitlab/app/presenters/ci/pipeline_presenter.rb

12 lines
259 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
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