BigW Consortium Gitlab

Commit c8b2aa8d by Grzegorz Bizon

Simplify ci status helper with detailed status

parent 40a11807
......@@ -36,10 +36,11 @@ module CiStatusHelper
end
def ci_icon_for_status(status)
icon_name =
if detailed_status?(status)
status.icon
else
return custom_icon(status.icon)
end
icon_name =
case status
when 'success'
'icon_status_success'
......@@ -60,7 +61,6 @@ module CiStatusHelper
else
'icon_status_canceled'
end
end
custom_icon(icon_name)
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