summaryrefslogtreecommitdiff
path: root/app/views/projects/_md_preview.html.haml
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-09-14 12:01:07 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-09-14 14:10:41 +0100
commita319418d9c050097a797fbf4f890cebd5256ed43 (patch)
treed1c97d9139fa984c8c8a86c5bdbe5c6438e6831b /app/views/projects/_md_preview.html.haml
parent994e7d135947ca162c147c5e0992a0190de22808 (diff)
downloadgitlab-ce-a319418d9c050097a797fbf4f890cebd5256ed43.tar.gz
Merge FE
Diffstat (limited to 'app/views/projects/_md_preview.html.haml')
-rw-r--r--app/views/projects/_md_preview.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/projects/_md_preview.html.haml b/app/views/projects/_md_preview.html.haml
index 71424593f2e..d56a2b58955 100644
--- a/app/views/projects/_md_preview.html.haml
+++ b/app/views/projects/_md_preview.html.haml
@@ -1,5 +1,12 @@
- referenced_users = local_assigns.fetch(:referenced_users, nil)
+- if defined?(@merge_request) && @merge_request.discussion_locked?
+.issuable-note-warning
+ = icon('lock')
+ %span
+ = _('This merge request is locked.')
+ = _('Only project members can comment.')
+
.md-area
.md-header
%ul.nav-links.clearfix