2019-02-25 13:25:00 -05:00
|
|
|
- status = local_assigns.fetch(:status)
|
|
|
|
- size = local_assigns.fetch(:size, 16)
|
2019-02-26 12:59:41 -05:00
|
|
|
- type = local_assigns.fetch(:type, 'pipeline')
|
|
|
|
- title = local_assigns.fetch(:title, "#{type.titleize}: #{status.label}")
|
2019-02-25 13:25:00 -05:00
|
|
|
- tooltip_placement = local_assigns.fetch(:tooltip_placement, "left")
|
2019-02-26 12:59:41 -05:00
|
|
|
- css_classes = "ci-status-link ci-status-icon ci-status-icon-#{status.group} has-tooltip"
|
2019-02-19 15:27:53 -05:00
|
|
|
|
2019-02-26 12:59:41 -05:00
|
|
|
- if status.has_details?
|
|
|
|
= link_to status.details_path, class: css_classes, title: title, data: { html: true, placement: tooltip_placement } do
|
2019-02-20 14:20:09 -05:00
|
|
|
= sprite_icon(status.icon, size: size)
|