Disable turbolink on links pointing out to ci services
This commit is contained in:
parent
0af2a161fa
commit
47e0614669
2 changed files with 5 additions and 5 deletions
|
@ -3,21 +3,21 @@
|
|||
%i.fa.fa-check
|
||||
%span CI build passed
|
||||
for #{@merge_request.last_commit_short_sha}.
|
||||
= link_to "Build page", ci_build_details_path(@merge_request)
|
||||
= link_to "Build page", ci_build_details_path(@merge_request), :"data-no-turbolink" => "data-no-turbolink"
|
||||
|
||||
|
||||
.ci_widget.ci-failed{style: "display:none"}
|
||||
%i.fa.fa-times
|
||||
%span CI build failed
|
||||
for #{@merge_request.last_commit_short_sha}.
|
||||
= link_to "Build page", ci_build_details_path(@merge_request)
|
||||
= link_to "Build page", ci_build_details_path(@merge_request), :"data-no-turbolink" => "data-no-turbolink"
|
||||
|
||||
- [:running, :pending].each do |status|
|
||||
.ci_widget{class: "ci-#{status}", style: "display:none"}
|
||||
%i.fa.fa-clock-o
|
||||
%span CI build #{status}
|
||||
for #{@merge_request.last_commit_short_sha}.
|
||||
= link_to "Build page", ci_build_details_path(@merge_request)
|
||||
= link_to "Build page", ci_build_details_path(@merge_request), :"data-no-turbolink" => "data-no-turbolink"
|
||||
|
||||
.ci_widget
|
||||
%i.fa.fa-spinner
|
||||
|
|
|
@ -68,11 +68,11 @@
|
|||
- @project.ci_services.each do |ci_service|
|
||||
- if ci_service.active? && ci_service.respond_to?(:builds_path)
|
||||
- if ci_service.respond_to?(:status_img_path)
|
||||
= link_to ci_service.builds_path do
|
||||
= link_to ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink' do
|
||||
= image_tag ci_service.status_img_path, alt: "build status"
|
||||
- else
|
||||
%span.light CI provided by
|
||||
= link_to ci_service.title, ci_service.builds_path
|
||||
= link_to ci_service.title, ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink'
|
||||
|
||||
- if readme
|
||||
.tab-pane#tab-readme
|
||||
|
|
Loading…
Reference in a new issue