summaryrefslogtreecommitdiff
path: root/app/views/projects/_md_preview.html.haml
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-06-03 15:00:04 -0600
committerConnor Shea <connor.james.shea@gmail.com>2016-06-03 15:00:04 -0600
commitccc8d419e65f19cfa8ea60622b527299de55d533 (patch)
treeb9f3ce42188f24b9100f2c931608fceb59dac56f /app/views/projects/_md_preview.html.haml
parent9aca0a1f96d0480ff61c92603acb2d6a987dd271 (diff)
downloadgitlab-ce-ccc8d419e65f19cfa8ea60622b527299de55d533.tar.gz
Add confidential issue notice in comment box.
Diffstat (limited to 'app/views/projects/_md_preview.html.haml')
-rw-r--r--app/views/projects/_md_preview.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/projects/_md_preview.html.haml b/app/views/projects/_md_preview.html.haml
index 81afea2c60a..59a952dd662 100644
--- a/app/views/projects/_md_preview.html.haml
+++ b/app/views/projects/_md_preview.html.haml
@@ -7,6 +7,12 @@
%li
%a.js-md-preview-button{ href: "#md-preview-holder", tabindex: -1 }
Preview
+
+ - if @issue.confidential?
+ %li.confidential-issue-warning
+ = icon('warning')
+ %span This is a confidential issue. Your comment will not be visible to the public.
+
%li.pull-right
%button.zen-control.zen-control-full.js-zen-enter{ type: 'button', tabindex: -1 }
Go full screen