_pipeline_stage.html.haml 581 字节
Newer Older
1 2 3 4 5
- status_groups = statuses.group_by(&:group_name)
- status_groups.each do |group_name, grouped_statuses|
  - if grouped_statuses.one?
    - status = grouped_statuses.first
    - is_playable = status.playable? && can?(current_user, :update_build, @project)
K
Kamil Trzcinski 已提交
6
    %li.build{ class: ("playable" if is_playable) }
7 8 9 10 11 12 13 14
      .curve
      .build-content
        = render "projects/#{status.to_partial_path}_pipeline", subject: status
  - else
    %li.build
      .curve
      .build-content
        = render "projects/commit/pipeline_status_group", name: group_name, subject: grouped_statuses