2011-11-30 18:51:04 -05:00
|
|
|
%ul.bordered-list
|
2012-11-18 11:41:41 -05:00
|
|
|
- diffs.each_with_index do |diff, i|
|
2011-11-30 18:51:04 -05:00
|
|
|
%li
|
|
|
|
- if diff.deleted_file
|
2012-11-18 11:41:41 -05:00
|
|
|
%span.deleted-file
|
|
|
|
%a{href: "#diff-#{i}"}
|
|
|
|
%i.icon-minus
|
2012-04-11 16:03:56 -04:00
|
|
|
= diff.old_path
|
2011-11-30 18:51:04 -05:00
|
|
|
- elsif diff.renamed_file
|
2012-11-18 11:41:41 -05:00
|
|
|
%span.renamed-file
|
|
|
|
%a{href: "#diff-#{i}"}
|
|
|
|
%i.icon-minus
|
2012-04-11 16:03:56 -04:00
|
|
|
= diff.old_path
|
2011-11-30 18:51:04 -05:00
|
|
|
= "->"
|
2012-04-11 16:03:56 -04:00
|
|
|
= diff.new_path
|
2011-11-30 18:51:04 -05:00
|
|
|
- elsif diff.new_file
|
2012-11-18 11:41:41 -05:00
|
|
|
%span.new-file
|
|
|
|
%a{href: "#diff-#{i}"}
|
|
|
|
%i.icon-plus
|
2012-04-11 16:03:56 -04:00
|
|
|
= diff.new_path
|
2011-11-30 18:51:04 -05:00
|
|
|
- else
|
2012-11-18 11:41:41 -05:00
|
|
|
%span.edit-file
|
|
|
|
%a{href: "#diff-#{i}"}
|
|
|
|
%i.icon-adjust
|
2012-04-11 16:03:56 -04:00
|
|
|
= diff.new_path
|
2011-10-21 14:40:36 -04:00
|
|
|
|