summaryrefslogtreecommitdiff
path: root/app/views/projects/_md_preview.html.haml
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-06-05 12:24:36 -0600
committerConnor Shea <connor.james.shea@gmail.com>2016-06-05 12:24:36 -0600
commitf0f8efeb3465d5a6915a680bc96a4cdc9384bd4b (patch)
tree001ca82bc05da3a5787c384a7a748c3a93164b6d /app/views/projects/_md_preview.html.haml
parent5b0316eab51546addea9cde74b710e9742fc95b8 (diff)
downloadgitlab-ce-f0f8efeb3465d5a6915a680bc96a4cdc9384bd4b.tar.gz
Fix error on non-issue pages with comment areas.
Diffstat (limited to 'app/views/projects/_md_preview.html.haml')
-rw-r--r--app/views/projects/_md_preview.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/_md_preview.html.haml b/app/views/projects/_md_preview.html.haml
index 59a952dd662..28a28282fd3 100644
--- a/app/views/projects/_md_preview.html.haml
+++ b/app/views/projects/_md_preview.html.haml
@@ -8,7 +8,7 @@
%a.js-md-preview-button{ href: "#md-preview-holder", tabindex: -1 }
Preview
- - if @issue.confidential?
+ - if defined?(@issue) && @issue.confidential?
%li.confidential-issue-warning
= icon('warning')
%span This is a confidential issue. Your comment will not be visible to the public.