summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-06-30 15:54:20 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-06-30 15:54:20 +0200
commit4d80360bedafe69d205634d5e0699fb31d019622 (patch)
tree36c86da292bfd248026ce4ee7b76f7ed0bf4a87e
parent40e31e1db31e6ba9a1cd6255afc2f09df61f4060 (diff)
downloadgitlab-ce-cache-commits-render.tar.gz
Cache markdown of commentscache-commits-render
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/views/projects/notes/_note.html.haml9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml
index 0a77f200f56..5478a887f91 100644
--- a/app/views/projects/notes/_note.html.haml
+++ b/app/views/projects/notes/_note.html.haml
@@ -21,7 +21,7 @@
- if member
%span.note-role.label
= member.human_access
-
+
- if note.system
= link_to user_path(note.author) do
= 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-text
- = preserve do
- = markdown(note.note, {no_header_anchors: true})
+ = cache [note, 'markdown'] do
+ .note-text
+ = preserve do
+ = markdown(note.note, {no_header_anchors: true})
= render 'projects/notes/edit_form', note: note
- if note.attachment.url