_mini_pipeline_graph.html.haml 1.0 KB
Newer Older
1
.stage-cell
2
  - pipeline.legacy_stages.each do |stage|
3 4 5 6 7 8
    - 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 }
9
        %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) } }
T
Tim Zallmann 已提交
10
          = sprite_icon(icon_status)
11 12 13
          = icon('caret-down')

        %ul.dropdown-menu.mini-pipeline-graph-dropdown-menu.js-builds-dropdown-container
14
          %li.js-builds-dropdown-list.scrollable-menu
15

16 17 18
          %li.js-builds-dropdown-loading.hidden
            .text-center
              %i.fa.fa-spinner.fa-spin{ 'aria-hidden': 'true', 'aria-label': 'Loading' }