Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKeith Pitt <me@keithpitt.com>2014-10-08 13:22:41 +0400
committerKeith Pitt <me@keithpitt.com>2014-10-08 13:22:41 +0400
commitf013973d19b9ae145b6f642e085172f1e266d5ef (patch)
treef0f7d3017191a62a617054c38a18072d955dd8ed /app
parent4c7da578f200f0bc721cc2cae27eb2b25f96e8dd (diff)
Handle the case where the CI service may not provide a status_img_path method.
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/show.html.haml9
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)
+