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
|
2015-10-01 07:52:08 -04:00
|
|
|
%strong #{pluralize(diff_files.count, "changed file")}
|
|
|
|
with
|
|
|
|
%strong.cgreen #{additions} additions
|
|
|
|
and
|
|
|
|
%strong.cred #{deletions} deletions
|
2014-07-15 11:28:21 -04:00
|
|
|
.file-stats.js-toggle-content.hide
|
2015-09-08 11:22:26 -04:00
|
|
|
%ul
|
2015-10-01 07:52:08 -04:00
|
|
|
- diff_files.each_with_index do |diff_file, i|
|
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
|
|
|
|
%a{href: "#diff-#{i}"}
|
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
|
|
|
|
%a{href: "#diff-#{i}"}
|
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
|
|
|
|
%a{href: "#diff-#{i}"}
|
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
|
|
|
|
%a{href: "#diff-#{i}"}
|
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
|
|
|
|