From 30c6dbe36d298ce0ee362502d7b4196f910f424e Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 5 May 2015 17:30:50 +0300 Subject: [PATCH] Show CI link on project home page only if CI enabled Signed-off-by: Dmitriy Zaporozhets --- app/views/projects/_aside.html.haml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/projects/_aside.html.haml b/app/views/projects/_aside.html.haml index e2b00a7895..a5f127afc2 100644 --- a/app/views/projects/_aside.html.haml +++ b/app/views/projects/_aside.html.haml @@ -64,15 +64,15 @@ .pull-right = link_to version_url(@project) do = @repository.blob_by_oid(version.id).data -.well - %h4 - CI - .pull-right - - @project.ci_services.each do |ci_service| - - if ci_service.active? && ci_service.respond_to?(:builds_path) + +- @project.ci_services.each do |ci_service| + - if ci_service.active? && ci_service.respond_to?(:builds_path) + .well + %h4 + = ci_service.title + .pull-right - if ci_service.respond_to?(:status_img_path) = 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, :'data-no-turbolink' => 'data-no-turbolink' + = link_to 'view builds', ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink'