Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_badge.html.haml « status « ci « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5114387984b44c08934276d5f39a11a994e37d05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- status = local_assigns.fetch(:status)
- 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?
  = link_to status.details_path, class: css_classes, title: title, data: { html: title.present? } do
    = sprite_icon(status.icon)
    = status.text
- else
  %span{ class: css_classes, title: title, data: { html: title.present? } }
    = sprite_icon(status.icon)
    = status.text