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