debian-mirror-gitlab/app/helpers/ci/pipelines_helper.rb
2020-10-24 23:57:45 +05:30

18 lines
444 B
Ruby

# frozen_string_literal: true
module Ci
module PipelinesHelper
def pipeline_warnings(pipeline)
return unless pipeline.warning_messages.any?
content_tag(:div, class: 'alert alert-warning') do
content_tag(:h4, 'Warning:') <<
content_tag(:div) do
pipeline.warning_messages.each do |warning|
concat(markdown(warning.content))
end
end
end
end
end
end