summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-17 16:16:48 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-17 20:55:38 -0300
commit6b86d3fb800bb551af4a446b87dfd64c963733a3 (patch)
tree3a3d0f5a06d24c12df0a6f06ef34310354e52700 /app/views
parentabb77d0f6cec87455e7da13d6a977ac4b8f740f4 (diff)
downloadgitlab-ce-6b86d3fb800bb551af4a446b87dfd64c963733a3.tar.gz
Add an option to user make an issue confidential
Diffstat (limited to 'app/views')
-rw-r--r--app/views/shared/issuable/_form.html.haml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/shared/issuable/_form.html.haml b/app/views/shared/issuable/_form.html.haml
index d5a4aad05d9..9ef729e960c 100644
--- a/app/views/shared/issuable/_form.html.haml
+++ b/app/views/shared/issuable/_form.html.haml
@@ -29,6 +29,15 @@
= render 'projects/notes/hints'
.clearfix
.error-alert
+
+- if issuable.is_a?(Issue) && !issuable.project.private?
+ .form-group
+ .col-sm-offset-2.col-sm-10
+ .checkbox
+ = f.label :confidential do
+ = f.check_box :confidential
+ This issue is confidential and should only be visible to team members
+
- if can?(current_user, :"admin_#{issuable.to_ability_name}", issuable.project)
%hr
.form-group