Commit e94f378b authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve support for icons in new detailed statuses

parent 79e132fa
......@@ -2,7 +2,6 @@
.header-main-content
= ci_status_with_icon(@pipeline.detailed_status)
%strong Pipeline ##{@commit.pipelines.last.id}
#{ci_label_for_status(@pipeline.detailed_status)},
triggered #{time_ago_with_tooltip(@commit.authored_date)} by
= author_avatar(@commit, size: 24)
= commit_author_link(@commit)
......
......@@ -30,7 +30,7 @@ module Gitlab
# phasing legacy satuses out.
#
def to_s
self.class.name.demodulize.downcase
self.class.name.demodulize.downcase.underscore
end
def has_details?
......
......@@ -17,6 +17,10 @@ module Gitlab
'icon_status_warning'
end
def to_s
'success_with_warnings'
end
def self.matches?(pipeline)
pipeline.success? && pipeline.has_warnings?
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment