diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-06-05 12:24:36 -0600 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-06-05 12:24:36 -0600 |
commit | f0f8efeb3465d5a6915a680bc96a4cdc9384bd4b (patch) | |
tree | 001ca82bc05da3a5787c384a7a748c3a93164b6d /app/views/projects/_md_preview.html.haml | |
parent | 5b0316eab51546addea9cde74b710e9742fc95b8 (diff) | |
download | gitlab-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.haml | 2 |
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. |