2016-12-14 05:36:19 -05:00
|
|
|
- status = local_assigns.fetch(:status)
|
2017-03-19 14:04:45 -04:00
|
|
|
- link = local_assigns.fetch(:link, true)
|
|
|
|
- title = local_assigns.fetch(:title, nil)
|
2017-03-27 14:15:23 -04:00
|
|
|
- css_classes = "ci-status ci-#{status.group} #{'has-tooltip' if title.present?}"
|
2016-12-14 05:36:19 -05:00
|
|
|
|
2017-01-27 09:20:57 -05:00
|
|
|
- if link && status.has_details?
|
2018-04-05 17:04:42 -04:00
|
|
|
= link_to status.details_path, class: css_classes, title: title, data: { html: title.present? } do
|
2017-10-02 04:40:32 -04:00
|
|
|
= sprite_icon(status.icon)
|
2017-01-27 09:20:57 -05:00
|
|
|
= status.text
|
|
|
|
- else
|
2018-04-05 17:04:42 -04:00
|
|
|
%span{ class: css_classes, title: title, data: { html: title.present? } }
|
2017-10-02 04:40:32 -04:00
|
|
|
= sprite_icon(status.icon)
|
2017-01-27 09:20:57 -05:00
|
|
|
= status.text
|