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 }
|
2016-12-08 14:48:46 +00:00
|
|
|
= 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
|
2016-12-26 10:47:16 +00:00
|
|
|
%li.build{ 'id' => "ci-badge-#{group_name}" }
|
2016-12-05 17:16:34 +00:00
|
|
|
.curve
|
2016-12-19 09:34:45 +00:00
|
|
|
= render 'ci/status/graph_badge', subject: status
|
2016-12-05 17:16:34 +00:00
|
|
|
- else
|
2016-12-26 10:47:16 +00:00
|
|
|
%li.build{ 'id' => "ci-badge-#{group_name}" }
|
2016-12-05 17:16:34 +00:00
|
|
|
.curve
|
2016-12-19 09:34:45 +00:00
|
|
|
= render 'projects/stage/in_stage_group', name: group_name, subject: grouped_statuses
|