summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/show.html.haml
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2017-06-07 18:25:53 +0000
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-06-07 18:25:53 +0000
commit3268675a0996d63297ba04330529ad8404d697a5 (patch)
tree16e024b90ffc3da1c7f233e8e16a0c735424154e /app/views/projects/issues/show.html.haml
parent4cb619fd73fbdfe174497e39a2a655c1896e21d7 (diff)
downloadgitlab-ce-3268675a0996d63297ba04330529ad8404d697a5.tar.gz
Add sticky confidential issue bar
Diffstat (limited to 'app/views/projects/issues/show.html.haml')
-rw-r--r--app/views/projects/issues/show.html.haml8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/projects/issues/show.html.haml b/app/views/projects/issues/show.html.haml
index d909b0bfbbd..5f92d020eef 100644
--- a/app/views/projects/issues/show.html.haml
+++ b/app/views/projects/issues/show.html.haml
@@ -5,6 +5,13 @@
- can_update_issue = can?(current_user, :update_issue, @issue)
- can_report_spam = @issue.submittable_as_spam_by?(current_user)
+- if defined?(@issue) && @issue.confidential?
+ .confidential-issue-warning{ data: { spy: 'affix' } }
+ %span.confidential-issue-text
+ #{confidential_icon(@issue)} This issue is confidential.
+ %a{ href: help_page_path('user/project/issues/confidential_issues'), target: '_blank' }
+ What are confidential issues?
+
.clearfix.detail-page-header
.issuable-header
.issuable-status-box.status-box.status-box-closed{ class: issue_button_visibility(@issue, false) }
@@ -19,7 +26,6 @@
= icon('angle-double-left')
.issuable-meta
- = confidential_icon(@issue)
= issuable_meta(@issue, @project, "Issue")
.issuable-actions