BigW Consortium Gitlab

_badge.html.haml 462 Bytes
Newer Older
1
- status = local_assigns.fetch(:status)
2 3
- link   = local_assigns.fetch(:link, true)
- title  = local_assigns.fetch(:title, nil)
4
- css_classes = "ci-status ci-#{status.group} #{'has-tooltip' if title.present?}"
5

6
- if link && status.has_details?
7
  = link_to status.details_path, class: css_classes, title: title do
8 9 10
    = custom_icon(status.icon)
    = status.text
- else
11
  %span{ class: css_classes, title: title }
12 13
    = custom_icon(status.icon)
    = status.text