2014-07-15 11:28:21 -04:00
|
|
|
.js-toggle-container
|
|
|
|
.commit-stat-summary
|
|
|
|
Showing
|
2015-03-18 22:11:27 -04:00
|
|
|
= link_to '#', class: 'js-toggle-button' do
|
2016-07-28 08:44:00 -04:00
|
|
|
%strong #{pluralize(diff_files.size, "changed file")}
|
2015-10-01 07:52:08 -04:00
|
|
|
with
|
2015-10-01 09:51:28 -04:00
|
|
|
%strong.cgreen #{diff_files.sum(&:added_lines)} additions
|
2015-10-01 07:52:08 -04:00
|
|
|
and
|
2015-10-01 09:51:28 -04:00
|
|
|
%strong.cred #{diff_files.sum(&:removed_lines)} deletions
|
2014-07-15 11:28:21 -04:00
|
|
|
.file-stats.js-toggle-content.hide
|
2015-09-08 11:22:26 -04:00
|
|
|
%ul
|
2016-11-13 13:18:03 -05:00
|
|
|
- diff_files.each do |diff_file|
|
|
|
|
- file_hash = hexdigest(diff_file.file_path)
|
2014-07-15 11:28:21 -04:00
|
|
|
%li
|
2015-10-01 07:52:08 -04:00
|
|
|
- if diff_file.deleted_file
|
2014-07-15 11:28:21 -04:00
|
|
|
%span.deleted-file
|
2016-11-13 13:18:03 -05:00
|
|
|
%a{href: "##{file_hash}"}
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-minus
|
2015-10-01 07:52:08 -04:00
|
|
|
= diff_file.old_path
|
|
|
|
- elsif diff_file.renamed_file
|
2014-07-15 11:28:21 -04:00
|
|
|
%span.renamed-file
|
2016-11-13 13:18:03 -05:00
|
|
|
%a{href: "##{file_hash}"}
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-minus
|
2015-10-01 07:52:08 -04:00
|
|
|
= diff_file.old_path
|
2015-02-20 11:55:23 -05:00
|
|
|
→
|
2015-10-01 07:52:08 -04:00
|
|
|
= diff_file.new_path
|
|
|
|
- elsif diff_file.new_file
|
2014-07-15 11:28:21 -04:00
|
|
|
%span.new-file
|
2016-11-13 13:18:03 -05:00
|
|
|
%a{href: "##{file_hash}"}
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-plus
|
2015-10-01 07:52:08 -04:00
|
|
|
= diff_file.new_path
|
2014-07-15 11:28:21 -04:00
|
|
|
- else
|
|
|
|
%span.edit-file
|
2016-11-13 13:18:03 -05:00
|
|
|
%a{href: "##{file_hash}"}
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-adjust
|
2015-10-01 07:52:08 -04:00
|
|
|
= diff_file.new_path
|
2014-07-15 11:28:21 -04:00
|
|
|
|