summaryrefslogtreecommitdiff
path: root/app/views/notify
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-08-18 18:27:22 -0500
committerDouwe Maan <douwe@selenight.nl>2016-08-18 19:08:59 -0500
commit6a355d451eaca2fc10f5fcf31de13b05fa795b9b (patch)
treef758173d2911fd6ed34698068b90d59e34de5b8c /app/views/notify
parentac89bb0fad1d5820c4defd51cb6ab0626d1fb6ba (diff)
downloadgitlab-ce-6a355d451eaca2fc10f5fcf31de13b05fa795b9b.tar.gz
Improve performance of MR show page
Diffstat (limited to 'app/views/notify')
-rw-r--r--app/views/notify/repository_push_email.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/notify/repository_push_email.html.haml b/app/views/notify/repository_push_email.html.haml
index 4dc39a72225..c0c07d65daa 100644
--- a/app/views/notify/repository_push_email.html.haml
+++ b/app/views/notify/repository_push_email.html.haml
@@ -75,8 +75,7 @@
- blob = diff_file.blob
- if blob && blob.respond_to?(:text?) && blob_text_viewable?(blob)
%table.code.white
- - diff_file.highlighted_diff_lines.each do |line|
- = render "projects/diffs/line", line: line, diff_file: diff_file, plain: true, email: true
+ = render partial: "projects/diffs/line", collection: diff_file.highlighted_diff_lines, as: :line, locals: { diff_file: diff_file, plain: true, email: true }
- else
No preview for this file type
%br