gitlab-org--gitlab-foss/app/views/ci/status/_badge.html.haml

14 lines
463 B
Text
Raw Normal View History

- status = local_assigns.fetch(:status)
2017-03-19 14:04:45 -04:00
- link = local_assigns.fetch(:link, true)
- title = local_assigns.fetch(:title, nil)
- css_classes = "ci-status ci-#{status.group} #{'has-tooltip' if title.present? }"
- if link && status.has_details?
2017-03-19 14:04:45 -04:00
= link_to status.details_path, class: css_classes, title: title do
= custom_icon(status.icon)
= status.text
- else
2017-03-19 14:04:45 -04:00
%span{ class: css_classes, title: title }
= custom_icon(status.icon)
= status.text