Fix error on non-issue pages with comment areas.
This commit is contained in:
parent
5b0316eab5
commit
f0f8efeb34
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue