Commit 6248fdfc authored by Robert Speicher's avatar Robert Speicher
Browse files

Don't render the edit_form view for system notes

parent f495f97d82f4
...@@ -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
......
Supports Markdown
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