Commit 87222e27 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

show all builds in sidebar, including retried

parent aa5aa273
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
.build-job { .build-job {
position: relative; position: relative;
.fa-check { .fa-arrow-right {
position: absolute; position: absolute;
left: 15px; left: 15px;
top: 20px; top: 20px;
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
&.active { &.active {
font-weight: bold; font-weight: bold;
.fa { .fa-arrow-right {
display: block; display: block;
} }
} }
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
.fa { .fa {
font-size: 12px; font-size: 12px;
color: $gl-text-color; color: $gl-text-color;
margin-left: 3px; margin-left: 5px;
} }
.commit-id { .commit-id {
......
- builds = @build.pipeline.builds.latest.to_a - builds = @build.pipeline.builds.to_a
- statuses = ["failed", "pending", "running", "canceled", "success", "skipped"] - statuses = ["failed", "pending", "running", "canceled", "success", "skipped"]
%aside.right-sidebar.right-sidebar-expanded.build-sidebar.js-build-sidebar %aside.right-sidebar.right-sidebar-expanded.build-sidebar.js-build-sidebar
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
.builds-container .builds-container
- statuses.each do |build_status| - statuses.each do |build_status|
- builds.select{|build| build.status == build_status}.each do |build| - builds.select{|build| build.status == build_status}.each do |build|
.build-job{class: ('active' if build == @build; 'retried' if @build.retried?), data: {stage: build.stage}} .build-job{class: ('active' if build == @build; 'retried' if build.retried?), data: {stage: build.stage}}
= link_to namespace_project_build_path(@project.namespace, @project, build) do = link_to namespace_project_build_path(@project.namespace, @project, build) do
= icon('arrow-right') = icon('arrow-right')
= ci_icon_for_status(build.status) = ci_icon_for_status(build.status)
...@@ -135,5 +135,5 @@ ...@@ -135,5 +135,5 @@
= build.name = build.name
- else - else
= build.id = build.id
- if @build.retried? - if build.retried?
%i.fa.fa-refresh.has-tooltip{data: { container: 'body', placement: 'bottom' }, title: 'This build was retried'} %i.fa.fa-refresh.has-tooltip{data: { container: 'body', placement: 'bottom' }, title: 'This build was retried'}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment