summaryrefslogtreecommitdiff
path: root/app/views/projects/diffs/_diffs.html.haml
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-12-30 17:16:25 -0200
committerFelipe Artur <felipefac@gmail.com>2017-01-12 13:41:29 -0200
commitca0cf5a3cd2829db4cfac007c36d5588ed369f87 (patch)
treebc5783a137de10e25358a24d764b50daabdf68ef /app/views/projects/diffs/_diffs.html.haml
parentec4fe4432a2c4daa14c8e8f7c5d8567553062ebf (diff)
downloadgitlab-ce-ca0cf5a3cd2829db4cfac007c36d5588ed369f87.tar.gz
Show 'too many changes' message for merge requestissue_25017
Diffstat (limited to 'app/views/projects/diffs/_diffs.html.haml')
-rw-r--r--app/views/projects/diffs/_diffs.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/diffs/_diffs.html.haml b/app/views/projects/diffs/_diffs.html.haml
index ab4a2dc36e5..58c20e225c6 100644
--- a/app/views/projects/diffs/_diffs.html.haml
+++ b/app/views/projects/diffs/_diffs.html.haml
@@ -18,8 +18,8 @@
= parallel_diff_btn
= render 'projects/diffs/stats', diff_files: diff_files
-- if diff_files.overflow?
- = render 'projects/diffs/warning', diff_files: diff_files
+- if render_overflow_warning?(diff_files)
+ = render 'projects/diffs/warning', diff_files: diffs
.files{ data: { can_create_note: can_create_note } }
- diff_files.each_with_index do |diff_file|