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 @@
.build-job {
position: relative;
.fa-check {
.fa-arrow-right {
position: absolute;
left: 15px;
top: 20px;
......@@ -205,7 +205,7 @@
&.active {
font-weight: bold;
.fa {
.fa-arrow-right {
display: block;
}
}
......
......@@ -114,7 +114,7 @@
.fa {
font-size: 12px;
color: $gl-text-color;
margin-left: 3px;
margin-left: 5px;
}
.commit-id {
......
- builds = @build.pipeline.builds.latest.to_a
- builds = @build.pipeline.builds.to_a
- statuses = ["failed", "pending", "running", "canceled", "success", "skipped"]
%aside.right-sidebar.right-sidebar-expanded.build-sidebar.js-build-sidebar
......@@ -126,7 +126,7 @@
.builds-container
- statuses.each do |build_status|
- 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
= icon('arrow-right')
= ci_icon_for_status(build.status)
......@@ -135,5 +135,5 @@
= build.name
- else
= build.id
- if @build.retried?
- if build.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