diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-09-07 18:14:21 +0300 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-09-26 09:42:33 +0300 |
commit | 360c1470573a34ed47b6bf594339b122900ea6d9 (patch) | |
tree | cfba93dafdbbc1c9e613b11b0c972408e6752066 /app/views/shared/notes | |
parent | 142bbd900b791478b2ad473efc8e0f78a7afe00d (diff) |
Disable comment form when discussion locked for user
Diffstat (limited to 'app/views/shared/notes')
-rw-r--r-- | app/views/shared/notes/_notes_with_form.html.haml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/shared/notes/_notes_with_form.html.haml b/app/views/shared/notes/_notes_with_form.html.haml index 371a9523de9..9a9a809757f 100644 --- a/app/views/shared/notes/_notes_with_form.html.haml +++ b/app/views/shared/notes/_notes_with_form.html.haml @@ -25,9 +25,11 @@ = link_to "sign in", new_session_path(:user, redirect_to_referer: 'yes'), class: 'js-sign-in-link' to comment - elsif discussion_locked - .discussion_locked - %span + .disabled-comment.text-center.prepend-top-default + %span.issuable-note-warning This - = issuable.class.to_s - has been locked. Posting comments has been restricted to project members. + = issuable.class.to_s.titleize + is locked. Only + %b project members + can comment. %script.js-notes-data{ type: "application/json" }= initial_notes_data(autocomplete).to_json.html_safe |