diff options
author | Paco Guzman <pacoguzmanp@gmail.com> | 2016-08-23 06:59:42 +0200 |
---|---|---|
committer | Paco Guzman <pacoguzmanp@gmail.com> | 2016-08-23 08:50:22 +0200 |
commit | 47b4a1befb5d8f2736e8e5d00f3f04c79d8ec323 (patch) | |
tree | cfe33bc02c4b3e24ef11aa1ee27c26a7eea13f0f /app/views/projects/diffs/_text_file.html.haml | |
parent | 5c7bca339bdb3c1b32ccea9d39d0789a949bca19 (diff) | |
download | gitlab-ce-cache_diff_file_diffs_content.tar.gz |
WIP Cache diff_file diffs contentcache_diff_file_diffs_content
TODO
- some variations missing (plain and email)
Diffstat (limited to 'app/views/projects/diffs/_text_file.html.haml')
-rw-r--r-- | app/views/projects/diffs/_text_file.html.haml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/diffs/_text_file.html.haml b/app/views/projects/diffs/_text_file.html.haml index f1d2d4bf268..2f597ebd1a4 100644 --- a/app/views/projects/diffs/_text_file.html.haml +++ b/app/views/projects/diffs/_text_file.html.haml @@ -5,11 +5,10 @@ %table.text-file.code.js-syntax-highlight{ data: diff_view_data, class: too_big ? 'hide' : '' } - last_line = 0 - - discussions = @grouped_diff_discussions unless @diff_notes_disabled = render partial: "projects/diffs/line", collection: diff_file.highlighted_diff_lines, as: :line, - locals: { diff_file: diff_file, discussions: discussions } + locals: { diff_file: diff_file } - last_line = diff_file.highlighted_diff_lines.last.new_pos - if !diff_file.new_file && last_line > 0 |