BigW Consortium Gitlab

_badge.html.haml 353 Bytes
Newer Older
1
- status = local_assigns.fetch(:status)
2 3
- link = local_assigns.fetch(:link, true)
- css_classes = "ci-status ci-#{status.group}"
4

5 6 7 8 9 10 11 12
- 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