diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-01 15:51:28 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-01 15:51:28 +0200 |
commit | e2576d588fef876e743f55b0b5b0620da43ab1c1 (patch) | |
tree | a22b3f5cd82855c4572ee407d6b15719379e64be /app/views/projects/diffs/_stats.html.haml | |
parent | 0d967bce574c3750429bf2aed7f8c4ddc6ce1971 (diff) | |
download | gitlab-ce-show-diff-stats-for-mr.tar.gz |
Avoid unnecessary usage of local varsshow-diff-stats-for-mr
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/diffs/_stats.html.haml')
-rw-r--r-- | app/views/projects/diffs/_stats.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/diffs/_stats.html.haml b/app/views/projects/diffs/_stats.html.haml index 9e49716f7a7..ea2a3e01277 100644 --- a/app/views/projects/diffs/_stats.html.haml +++ b/app/views/projects/diffs/_stats.html.haml @@ -4,9 +4,9 @@ = link_to '#', class: 'js-toggle-button' do %strong #{pluralize(diff_files.count, "changed file")} with - %strong.cgreen #{additions} additions + %strong.cgreen #{diff_files.sum(&:added_lines)} additions and - %strong.cred #{deletions} deletions + %strong.cred #{diff_files.sum(&:removed_lines)} deletions .file-stats.js-toggle-content.hide %ul - diff_files.each_with_index do |diff_file, i| |