diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-11-22 14:47:02 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-11-22 14:47:02 -0600 |
commit | 9e87eaf83f6f75e013ef3a7aa565caada70a1390 (patch) | |
tree | 951d36f0144a6c6f78518873c55c93ce9cf0c246 /app/views/projects/commit/_pipeline_stage.html.haml | |
parent | c3f858b764d684321e3c0f149f0eb59029ef04e8 (diff) | |
download | gitlab-ce-9e87eaf83f6f75e013ef3a7aa565caada70a1390.tar.gz |
sort pipeline graph builds and build groups by name
Diffstat (limited to 'app/views/projects/commit/_pipeline_stage.html.haml')
-rw-r--r-- | app/views/projects/commit/_pipeline_stage.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/commit/_pipeline_stage.html.haml b/app/views/projects/commit/_pipeline_stage.html.haml index 289aa5178b1..f9a9c8707f5 100644 --- a/app/views/projects/commit/_pipeline_stage.html.haml +++ b/app/views/projects/commit/_pipeline_stage.html.haml @@ -1,4 +1,4 @@ -- status_groups = statuses.group_by(&:group_name) +- status_groups = statuses.sort_by(&:name).group_by(&:group_name) - status_groups.each do |group_name, grouped_statuses| - if grouped_statuses.one? - status = grouped_statuses.first |