2017-01-14 10:27:50 -05:00
|
|
|
.stage-cell
|
2017-06-01 05:55:18 -04:00
|
|
|
- pipeline.legacy_stages.each do |stage|
|
2017-01-14 10:27:50 -05:00
|
|
|
- if stage.status
|
|
|
|
- detailed_status = stage.detailed_status(current_user)
|
|
|
|
- icon_status = "#{detailed_status.icon}_borderless"
|
|
|
|
- status_klass = "ci-status-icon ci-status-icon-#{detailed_status.group}"
|
|
|
|
|
|
|
|
.stage-container.dropdown{ class: klass }
|
2017-06-29 13:06:35 -04:00
|
|
|
%button.mini-pipeline-graph-dropdown-toggle.has-tooltip.js-builds-dropdown-button{ class: "ci-status-icon-#{detailed_status.group}", type: 'button', data: { toggle: 'dropdown', title: "#{stage.name}: #{detailed_status.label}", placement: 'top', "stage-endpoint" => stage_project_pipeline_path(pipeline.project, pipeline, stage: stage.name) } }
|
2017-10-10 04:19:20 -04:00
|
|
|
= sprite_icon(icon_status)
|
2017-01-14 10:27:50 -05:00
|
|
|
= icon('caret-down')
|
|
|
|
|
|
|
|
%ul.dropdown-menu.mini-pipeline-graph-dropdown-menu.js-builds-dropdown-container
|
2017-05-04 09:11:48 -04:00
|
|
|
%li.js-builds-dropdown-list.scrollable-menu
|
2017-01-14 10:27:50 -05:00
|
|
|
|
2017-05-04 09:11:48 -04:00
|
|
|
%li.js-builds-dropdown-loading.hidden
|
|
|
|
.text-center
|
|
|
|
%i.fa.fa-spinner.fa-spin{ 'aria-hidden': 'true', 'aria-label': 'Loading' }
|