diff options
author | Keith Pitt <me@keithpitt.com> | 2014-10-08 17:22:41 +0800 |
---|---|---|
committer | Keith Pitt <me@keithpitt.com> | 2014-10-08 17:22:41 +0800 |
commit | f013973d19b9ae145b6f642e085172f1e266d5ef (patch) | |
tree | f0f7d3017191a62a617054c38a18072d955dd8ed | |
parent | 4c7da578f200f0bc721cc2cae27eb2b25f96e8dd (diff) | |
download | gitlab-ce-f013973d19b9ae145b6f642e085172f1e266d5ef.tar.gz |
Handle the case where the CI service may not provide a status_img_path method.
-rw-r--r-- | app/views/projects/show.html.haml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml index 61525ca6c10..9b06ebe95a4 100644 --- a/app/views/projects/show.html.haml +++ b/app/views/projects/show.html.haml @@ -64,8 +64,12 @@ - @project.ci_services.each do |ci_service| - if ci_service.active? && ci_service.respond_to?(:builds_path) - = link_to ci_service.builds_path do - = image_tag ci_service.status_img_path, alt: "build status" + - if ci_service.respond_to?(:status_img_path) + = link_to ci_service.builds_path 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 - if readme .tab-pane#tab-readme @@ -76,3 +80,4 @@ = readme.name .wiki = render_readme(readme) + |