Commit e94f378b authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve support for icons in new detailed statuses

parent 79e132fa
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
.header-main-content .header-main-content
= ci_status_with_icon(@pipeline.detailed_status) = ci_status_with_icon(@pipeline.detailed_status)
%strong Pipeline ##{@commit.pipelines.last.id} %strong Pipeline ##{@commit.pipelines.last.id}
#{ci_label_for_status(@pipeline.detailed_status)},
triggered #{time_ago_with_tooltip(@commit.authored_date)} by triggered #{time_ago_with_tooltip(@commit.authored_date)} by
= author_avatar(@commit, size: 24) = author_avatar(@commit, size: 24)
= commit_author_link(@commit) = commit_author_link(@commit)
......
...@@ -30,7 +30,7 @@ module Gitlab ...@@ -30,7 +30,7 @@ module Gitlab
# phasing legacy satuses out. # phasing legacy satuses out.
# #
def to_s def to_s
self.class.name.demodulize.downcase self.class.name.demodulize.downcase.underscore
end end
def has_details? def has_details?
......
...@@ -17,6 +17,10 @@ module Gitlab ...@@ -17,6 +17,10 @@ module Gitlab
'icon_status_warning' 'icon_status_warning'
end end
def to_s
'success_with_warnings'
end
def self.matches?(pipeline) def self.matches?(pipeline)
pipeline.success? && pipeline.has_warnings? pipeline.success? && pipeline.has_warnings?
end 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