Cache markdown of comments

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets
2015-06-30 15:54:20 +02:00
parent 40e31e1db3
commit 4d80360bed
+4 -3
View File
@@ -56,9 +56,10 @@
.note-body{class: note_editable?(note) ? 'js-task-list-container' : ''} .note-body{class: note_editable?(note) ? 'js-task-list-container' : ''}
.note-text = cache [note, 'markdown'] do
= preserve do .note-text
= markdown(note.note, {no_header_anchors: true}) = preserve do
= markdown(note.note, {no_header_anchors: true})
= render 'projects/notes/edit_form', note: note = render 'projects/notes/edit_form', note: note
- if note.attachment.url - if note.attachment.url