2014-07-15 11:28:21 -04:00
|
|
|
.js-toggle-container
|
|
|
|
.commit-stat-summary
|
|
|
|
Showing
|
2017-03-14 01:02:30 -04:00
|
|
|
%button.diff-stats-summary-toggler.js-toggle-button{ type: "button" }
|
2017-01-13 11:07:21 -05: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
|
2017-05-15 13:10:29 -04:00
|
|
|
- if diff_file.deleted_file?
|
2014-07-15 11:28:21 -04:00
|
|
|
%span.deleted-file
|
2016-12-26 05:47:16 -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
|
2017-05-15 13:10:29 -04:00
|
|
|
- elsif diff_file.renamed_file?
|
2014-07-15 11:28:21 -04:00
|
|
|
%span.renamed-file
|
2016-12-26 05:47:16 -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
|
2017-05-15 13:10:29 -04:00
|
|
|
- elsif diff_file.new_file?
|
2014-07-15 11:28:21 -04:00
|
|
|
%span.new-file
|
2016-12-26 05:47:16 -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-12-26 05:47:16 -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
|