gitlab-org--gitlab-foss/app/views/commits/_diff_head.html.haml

27 lines
664 B
Text
Raw Normal View History

%ul.bordered-list
- diffs.each_with_index do |diff, i|
%li
- if diff.deleted_file
%span.deleted-file
%a{href: "#diff-#{i}"}
%i.icon-minus
2012-04-11 16:03:56 -04:00
= diff.old_path
- elsif diff.renamed_file
%span.renamed-file
%a{href: "#diff-#{i}"}
%i.icon-minus
2012-04-11 16:03:56 -04:00
= diff.old_path
= "->"
2012-04-11 16:03:56 -04:00
= diff.new_path
- elsif diff.new_file
%span.new-file
%a{href: "#diff-#{i}"}
%i.icon-plus
2012-04-11 16:03:56 -04:00
= diff.new_path
- else
%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