summaryrefslogtreecommitdiff
path: root/app/views/ci/status/_badge.html.haml
blob: 601fb7f0f3f892a44d7bba0b5974db30ba4a9a79 (plain)
1
2
3
4
5
6
7
8
9
10
11
- status = local_assigns.fetch(:status)
- css_classes = "ci-status ci-#{status.group}"

- if 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