Commit 30c6dbe3 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Show CI link on project home page only if CI enabled

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 040ee6f8
...@@ -64,15 +64,15 @@ ...@@ -64,15 +64,15 @@
.pull-right .pull-right
= link_to version_url(@project) do = link_to version_url(@project) do
= @repository.blob_by_oid(version.id).data = @repository.blob_by_oid(version.id).data
.well
%h4 - @project.ci_services.each do |ci_service|
CI - if ci_service.active? && ci_service.respond_to?(:builds_path)
.pull-right .well
- @project.ci_services.each do |ci_service| %h4
- if ci_service.active? && ci_service.respond_to?(:builds_path) = ci_service.title
.pull-right
- if ci_service.respond_to?(:status_img_path) - if ci_service.respond_to?(:status_img_path)
= link_to ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink' do = link_to ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink' do
= image_tag ci_service.status_img_path, alt: "build status" = image_tag ci_service.status_img_path, alt: "build status"
- else - else
%span.light CI provided by = link_to 'view builds', ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink'
= link_to ci_service.title, ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink'
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