Merge branch 'spinner-spin' into 'master'
Spin icon next to "Checking for CI status..." Stationary spinners make me sad. See merge request !655
This commit is contained in:
commit
de1aca131e
2 changed files with 7 additions and 6 deletions
|
@ -64,6 +64,7 @@ v 7.11.0 (unreleased)
|
||||||
- Use SIGKILL by default in Sidekiq::MemoryKiller
|
- Use SIGKILL by default in Sidekiq::MemoryKiller
|
||||||
- Fix mentioning of private groups.
|
- Fix mentioning of private groups.
|
||||||
- Add style for <kbd> element in markdown
|
- Add style for <kbd> element in markdown
|
||||||
|
- Spin spinner icon next to "Checking for CI status..." on MR page.
|
||||||
|
|
||||||
v 7.10.2
|
v 7.10.2
|
||||||
- Fix CI links on MR page
|
- Fix CI links on MR page
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
- if @commits.any?
|
- if @commits.any?
|
||||||
.ci_widget.ci-success{style: "display:none"}
|
.ci_widget.ci-success{style: "display:none"}
|
||||||
%i.fa.fa-check
|
= icon("check")
|
||||||
%span CI build passed
|
%span CI build passed
|
||||||
for #{@merge_request.last_commit_short_sha}.
|
for #{@merge_request.last_commit_short_sha}.
|
||||||
= link_to "View build page", ci_build_details_path(@merge_request), :"data-no-turbolink" => "data-no-turbolink"
|
= link_to "View build page", ci_build_details_path(@merge_request), :"data-no-turbolink" => "data-no-turbolink"
|
||||||
|
|
||||||
|
|
||||||
.ci_widget.ci-failed{style: "display:none"}
|
.ci_widget.ci-failed{style: "display:none"}
|
||||||
%i.fa.fa-times
|
= icon("times")
|
||||||
%span CI build failed
|
%span CI build failed
|
||||||
for #{@merge_request.last_commit_short_sha}.
|
for #{@merge_request.last_commit_short_sha}.
|
||||||
= link_to "View build page", ci_build_details_path(@merge_request), :"data-no-turbolink" => "data-no-turbolink"
|
= link_to "View build page", ci_build_details_path(@merge_request), :"data-no-turbolink" => "data-no-turbolink"
|
||||||
|
|
||||||
- [:running, :pending].each do |status|
|
- [:running, :pending].each do |status|
|
||||||
.ci_widget{class: "ci-#{status}", style: "display:none"}
|
.ci_widget{class: "ci-#{status}", style: "display:none"}
|
||||||
%i.fa.fa-clock-o
|
= icon("clock-o")
|
||||||
%span CI build #{status}
|
%span CI build #{status}
|
||||||
for #{@merge_request.last_commit_short_sha}.
|
for #{@merge_request.last_commit_short_sha}.
|
||||||
= link_to "View build page", ci_build_details_path(@merge_request), :"data-no-turbolink" => "data-no-turbolink"
|
= link_to "View build page", ci_build_details_path(@merge_request), :"data-no-turbolink" => "data-no-turbolink"
|
||||||
|
|
||||||
.ci_widget
|
.ci_widget
|
||||||
%i.fa.fa-spinner
|
= icon("spinner spin")
|
||||||
Checking for CI status for #{@merge_request.last_commit_short_sha}
|
Checking for CI status for #{@merge_request.last_commit_short_sha}
|
||||||
|
|
||||||
.ci_widget.ci-canceled{style: "display:none"}
|
.ci_widget.ci-canceled{style: "display:none"}
|
||||||
%i.fa.fa-times
|
= icon("times")
|
||||||
%span CI build canceled
|
%span CI build canceled
|
||||||
for #{@merge_request.last_commit_short_sha}.
|
for #{@merge_request.last_commit_short_sha}.
|
||||||
= link_to "View build page", ci_build_details_path(@merge_request), :"data-no-turbolink" => "data-no-turbolink"
|
= link_to "View build page", ci_build_details_path(@merge_request), :"data-no-turbolink" => "data-no-turbolink"
|
||||||
|
|
||||||
.ci_widget.ci-error{style: "display:none"}
|
.ci_widget.ci-error{style: "display:none"}
|
||||||
%i.fa.fa-times
|
= icon("times")
|
||||||
%span Cannot connect to the CI server. Please check your settings and try again.
|
%span Cannot connect to the CI server. Please check your settings and try again.
|
||||||
|
|
Loading…
Reference in a new issue