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/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-21 21:29:29 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-21 21:29:29 +0300
commitcbdee053b4999f9ac029ac245f4043bd3005048d (patch)
tree6ce6d58bd39e24bfc8026d5046b9473f5e627f0e /app/views
parentcacc70daf4b61b127b778b7a6e8244ab18116a14 (diff)
parentca6fd0a27da17e927b4db7136ead01f7564baf2b (diff)
Merge branch 'fix-ci-handling' into 'master'
Fixed MR handling when GitLab CI project is not present This is copy of !1371 /cc @jacobvosmaer @vsizov @dzaporozhets See merge request !1373
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/merge_requests/widget/_heading.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/merge_requests/widget/_heading.html.haml b/app/views/projects/merge_requests/widget/_heading.html.haml
index 4d4e2f68f61..10640f746f0 100644
--- a/app/views/projects/merge_requests/widget/_heading.html.haml
+++ b/app/views/projects/merge_requests/widget/_heading.html.haml
@@ -10,7 +10,8 @@
%span CI build #{status}
for #{@merge_request.last_commit_short_sha}.
%span.ci-coverage
- = link_to "View build details", ci_build_details_path(@merge_request), :"data-no-turbolink" => "data-no-turbolink"
+ - if ci_build_details_path(@merge_request)
+ = link_to "View build details", ci_build_details_path(@merge_request), :"data-no-turbolink" => "data-no-turbolink"
.ci_widget
= icon("spinner spin")