Add background color and icon to retried builds
This commit is contained in:
parent
5dcb57e5ec
commit
0912022d32
5 changed files with 17 additions and 3 deletions
|
@ -16,6 +16,7 @@ $white-light: #fff;
|
|||
$white-normal: #ededed;
|
||||
$white-dark: #ececec;
|
||||
|
||||
$gray-lightest: #fdfdfd;
|
||||
$gray-light: #fafafa;
|
||||
$gray-lighter: #f9f9f9;
|
||||
$gray-normal: #f5f5f5;
|
||||
|
|
|
@ -210,9 +210,18 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.retried {
|
||||
background-color: $gray-lightest;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $row-hover;
|
||||
}
|
||||
|
||||
.fa-refresh {
|
||||
font-size: 13px;
|
||||
margin-left: 3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,6 +73,10 @@
|
|||
border-top-width: 1px;
|
||||
}
|
||||
|
||||
.build.retried {
|
||||
background-color: $gray-lightest;
|
||||
}
|
||||
|
||||
.commit-link {
|
||||
|
||||
.ci-status {
|
||||
|
|
|
@ -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), 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)
|
||||
|
@ -136,4 +136,4 @@
|
|||
- else
|
||||
= build.id
|
||||
- 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 @@
|
|||
- coverage = local_assigns.fetch(:coverage, false)
|
||||
- allow_retry = local_assigns.fetch(:allow_retry, false)
|
||||
|
||||
%tr.build.commit
|
||||
%tr.build.commit{class: ('retried' if defined?(retried) && retried)}
|
||||
%td.status
|
||||
- if can?(current_user, :read_build, build)
|
||||
= ci_status_with_icon(build.status, namespace_project_build_url(build.project.namespace, build.project, build))
|
||||
|
|
Loading…
Reference in a new issue