mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-20 10:06:04 +10:00
Cache markdown of comments
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
- if member
|
- if member
|
||||||
%span.note-role.label
|
%span.note-role.label
|
||||||
= member.human_access
|
= member.human_access
|
||||||
|
|
||||||
- if note.system
|
- if note.system
|
||||||
= link_to user_path(note.author) do
|
= link_to user_path(note.author) do
|
||||||
= image_tag avatar_icon(note.author_email), class: 'avatar s16', alt: ''
|
= image_tag avatar_icon(note.author_email), class: 'avatar s16', alt: ''
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user