blob: 1fd34eacdf7c75bc3221bcc158974709340e67d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
- status = local_assigns.fetch(:status)
- size = local_assigns.fetch(:size, 16)
- link = local_assigns.fetch(:link, true)
- title = local_assigns.fetch(:title, "Pipeline: #{status.label}")
- tooltip_placement = local_assigns.fetch(:tooltip_placement, "left")
- css_classes = "ci-status-link ci-status-icon ci-status-icon-#{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?, placement: tooltip_placement } do
= sprite_icon(status.icon, size: size)
- else
%span{ class: css_classes, title: title, data: { html: title.present?, placement: tooltip_placement } }
= sprite_icon(status.icon, size: size)
|