Commit 0912022d authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Add background color and icon to retried builds

parent 5dcb57e5
...@@ -16,6 +16,7 @@ $white-light: #fff; ...@@ -16,6 +16,7 @@ $white-light: #fff;
$white-normal: #ededed; $white-normal: #ededed;
$white-dark: #ececec; $white-dark: #ececec;
$gray-lightest: #fdfdfd;
$gray-light: #fafafa; $gray-light: #fafafa;
$gray-lighter: #f9f9f9; $gray-lighter: #f9f9f9;
$gray-normal: #f5f5f5; $gray-normal: #f5f5f5;
......
...@@ -210,9 +210,18 @@ ...@@ -210,9 +210,18 @@
} }
} }
&.retried {
background-color: $gray-lightest;
}
&:hover { &:hover {
background-color: $row-hover; background-color: $row-hover;
} }
.fa-refresh {
font-size: 13px;
margin-left: 3px;
}
} }
} }
} }
......
...@@ -73,6 +73,10 @@ ...@@ -73,6 +73,10 @@
border-top-width: 1px; border-top-width: 1px;
} }
.build.retried {
background-color: $gray-lightest;
}
.commit-link { .commit-link {
.ci-status { .ci-status {
......
...@@ -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), 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)
...@@ -136,4 +136,4 @@ ...@@ -136,4 +136,4 @@
- else - else
= build.id = build.id
- if @build.retried? - if @build.retried?
%i.fa.fa-warning.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'}
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
- coverage = local_assigns.fetch(:coverage, false) - coverage = local_assigns.fetch(:coverage, false)
- allow_retry = local_assigns.fetch(:allow_retry, false) - allow_retry = local_assigns.fetch(:allow_retry, false)
%tr.build.commit %tr.build.commit{class: ('retried' if defined?(retried) && retried)}
%td.status %td.status
- if can?(current_user, :read_build, build) - if can?(current_user, :read_build, build)
= ci_status_with_icon(build.status, namespace_project_build_url(build.project.namespace, build.project, build)) = ci_status_with_icon(build.status, namespace_project_build_url(build.project.namespace, build.project, build))
......
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