Commit f0f8efeb authored by Connor Shea's avatar Connor Shea

Fix error on non-issue pages with comment areas.

parent 5b0316ea
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
%a.js-md-preview-button{ href: "#md-preview-holder", tabindex: -1 } %a.js-md-preview-button{ href: "#md-preview-holder", tabindex: -1 }
Preview Preview
- if @issue.confidential? - if defined?(@issue) && @issue.confidential?
%li.confidential-issue-warning %li.confidential-issue-warning
= icon('warning') = icon('warning')
%span This is a confidential issue. Your comment will not be visible to the public. %span This is a confidential issue. Your comment will not be visible to the public.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment