summaryrefslogtreecommitdiff
path: root/app/views/projects/builds/_sidebar.html.haml
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-09-20 14:23:47 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-09-20 14:24:56 +0200
commit2baa90b224b1013719890b1a208cacd94a2ba449 (patch)
tree1a83bb94ce994b0feacec9782364afbf1bb6c317 /app/views/projects/builds/_sidebar.html.haml
parent4276172b6977bb83de2dc86ecccd48984e09955c (diff)
downloadgitlab-ce-2baa90b224b1013719890b1a208cacd94a2ba449.tar.gz
Render stages in valid order
Diffstat (limited to 'app/views/projects/builds/_sidebar.html.haml')
-rw-r--r--app/views/projects/builds/_sidebar.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/builds/_sidebar.html.haml b/app/views/projects/builds/_sidebar.html.haml
index 56306b05934..0aa3092baa2 100644
--- a/app/views/projects/builds/_sidebar.html.haml
+++ b/app/views/projects/builds/_sidebar.html.haml
@@ -112,14 +112,14 @@
%span.label.label-primary
= tag
- - if builds.size > 1
+ - if @build.pipeline.stages.many?
.dropdown.build-dropdown
.title Stage
%button.dropdown-menu-toggle{type: 'button', 'data-toggle' => 'dropdown'}
%span.stage-selection More
= icon('caret-down')
%ul.dropdown-menu
- - builds.map(&:stage).uniq.each do |stage|
+ - @build.pipeline.stages.each do |stage|
%li
%a.stage-item= stage