gitlab-org--gitlab-foss/app/views/ci/status/_badge.html.haml
Filipa Lacerda 6679a9062a Use badge partial as single source of truth instead of having 2 partials doing the same
Update changelog description

Changes after review
2017-01-27 14:36:46 +00:00

12 lines
353 B
Text

- status = local_assigns.fetch(:status)
- link = local_assigns.fetch(:link, true)
- css_classes = "ci-status ci-#{status.group}"
- if link && status.has_details?
= link_to status.details_path, class: css_classes do
= custom_icon(status.icon)
= status.text
- else
%span{ class: css_classes }
= custom_icon(status.icon)
= status.text