gitlab-org--gitlab-foss/app/views/projects/stage/_graph.html.haml

20 lines
725 B
Plaintext
Raw Normal View History

2016-12-07 18:30:14 +00:00
- stage = local_assigns.fetch(:stage)
- statuses = stage.statuses.latest
2016-12-27 15:59:42 +00:00
- status_groups = statuses.sort_by(&:sortable_name).group_by(&:group_name)
2016-12-05 17:16:34 +00:00
%li.stage-column
.stage-name
2016-12-07 18:30:14 +00:00
%a{ name: stage.name }
= stage.name.titleize
2016-12-05 17:16:34 +00:00
.builds-container
%ul
- status_groups.each do |group_name, grouped_statuses|
- if grouped_statuses.one?
- status = grouped_statuses.first
%li.build{ 'id' => "ci-badge-#{group_name}" }
2016-12-05 17:16:34 +00:00
.curve
= render 'ci/status/graph_badge', subject: status
2016-12-05 17:16:34 +00:00
- else
%li.build{ 'id' => "ci-badge-#{group_name}" }
2016-12-05 17:16:34 +00:00
.curve
= render 'projects/stage/in_stage_group', name: group_name, subject: grouped_statuses