diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-05-05 17:30:50 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-05-05 17:30:50 +0300 |
commit | 30c6dbe36d298ce0ee362502d7b4196f910f424e (patch) | |
tree | c6af91ddda8119839811a6868db432b5ee0eb514 | |
parent | 040ee6f897c59d81b6221bc427b8b57f992f14e6 (diff) | |
download | gitlab-ce-30c6dbe36d298ce0ee362502d7b4196f910f424e.tar.gz |
Show CI link on project home page only if CI enabled
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | app/views/projects/_aside.html.haml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/views/projects/_aside.html.haml b/app/views/projects/_aside.html.haml index e2b00a78953..a5f127afc20 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' |