2017-01-04 06:48:48 -05:00
|
|
|
-# Renders the content of each li in the dropdown
|
|
|
|
|
|
|
|
- subject = local_assigns.fetch(:subject)
|
|
|
|
- status = subject.detailed_status(current_user)
|
|
|
|
- klass = "ci-status-icon ci-status-icon-#{status.group}"
|
|
|
|
- tooltip = "#{subject.name} - #{status.label}"
|
|
|
|
|
|
|
|
- if status.has_details?
|
2017-08-11 12:42:35 -04:00
|
|
|
= link_to status.details_path, class: 'mini-pipeline-graph-dropdown-item', data: { toggle: 'tooltip', title: tooltip, container: 'body' } do
|
2017-10-02 04:40:32 -04:00
|
|
|
%span{ class: klass }= sprite_icon(status.icon)
|
2017-01-04 06:48:48 -05:00
|
|
|
%span.ci-build-text= subject.name
|
|
|
|
- else
|
2017-08-11 12:42:35 -04:00
|
|
|
.menu-item.mini-pipeline-graph-dropdown-item{ data: { toggle: 'tooltip', title: tooltip, container: 'body' } }
|
2017-10-02 04:40:32 -04:00
|
|
|
%span{ class: klass }= sprite_icon(status.icon)
|
2017-01-04 06:48:48 -05:00
|
|
|
%span.ci-build-text= subject.name
|
|
|
|
|
|
|
|
- if status.has_action?
|
2017-10-12 05:35:16 -04:00
|
|
|
= link_to status.action_path, class: "ci-action-icon-wrapper js-ci-action-icon", method: status.action_method, data: { toggle: 'tooltip', title: status.action_title, container: 'body' } do
|
|
|
|
= sprite_icon(status.action_icon, css_class: "icon-action-#{status.action_icon}")
|