From 9ade9a64519395d77b6ef143ad063103d6ff3d10 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Fri, 25 Sep 2015 16:27:41 -0400 Subject: Don't render the edit_form view for system notes --- app/views/projects/notes/_note.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml index 9bfbde02ca2..cf5d5d6d8ba 100644 --- a/app/views/projects/notes/_note.html.haml +++ b/app/views/projects/notes/_note.html.haml @@ -59,7 +59,9 @@ .note-text = preserve do = markdown(note.note, {no_header_anchors: true}) - = render 'projects/notes/edit_form', note: note + - unless note.system? + -# System notes can't be edited + = render 'projects/notes/edit_form', note: note - if note.attachment.url .note-attachment -- cgit v1.2.1