diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/builds/show.html.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/builds/show.html.haml b/app/views/projects/builds/show.html.haml index 5f7c66e4dd2..b4834ae42a2 100644 --- a/app/views/projects/builds/show.html.haml +++ b/app/views/projects/builds/show.html.haml @@ -8,20 +8,20 @@ - builds = @build.pipeline.builds.latest.to_a - statuses = ["failed", "pending", "running", "canceled", "skipped", "success"] - if builds.size > 1 - .dropdown.stage + .dropdown.build-dropdown %button.dropdown-menu-toggle{type: 'button', 'data-toggle' => 'dropdown'} %span.stage-selection More = icon('caret-down') - %ul.dropdown-menu.overflow-jobs + %ul.dropdown-menu - builds.map(&:stage).uniq.each do |stage| %li %a.stage-item= stage - .dropdown.jobs-dropdown + .dropdown.build-dropdown %button.dropdown-menu-toggle{type: 'button', 'data-toggle' => 'dropdown'} %span.build-selection More = icon('caret-down') - %ul.dropdown-menu.overflow-jobs + %ul.dropdown-menu - statuses.each do |build_status| - builds.select{|build| build.status == build_status}.each do |build| %li.build-job{class: ('active' if build == @build), data: {id: build.id, name: build.name, stage: build.stage}} |