Commit 9ade9a64 authored by Robert Speicher's avatar Robert Speicher

Don't render the edit_form view for system notes

parent 2714d5b8
...@@ -59,7 +59,9 @@ ...@@ -59,7 +59,9 @@
.note-text .note-text
= preserve do = preserve do
= markdown(note.note, {no_header_anchors: true}) = 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 - if note.attachment.url
.note-attachment .note-attachment
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment