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

Don't render the edit_form view for system notes

parent 2714d5b8
...@@ -59,6 +59,8 @@ ...@@ -59,6 +59,8 @@
.note-text .note-text
= preserve do = preserve do
= markdown(note.note, {no_header_anchors: true}) = markdown(note.note, {no_header_anchors: true})
- unless note.system?
-# System notes can't be edited
= render 'projects/notes/edit_form', note: note = render 'projects/notes/edit_form', note: note
- if note.attachment.url - if note.attachment.url
......
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