gitlabhq/app/views/commits/_diff_head.html.haml

27 lines
664 B
Plaintext
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 22:03:56 +02:00
= diff.old_path
- elsif diff.renamed_file
%span.renamed-file
%a{href: "#diff-#{i}"}
%i.icon-minus
2012-04-11 22:03:56 +02:00
= diff.old_path
= "->"
2012-04-11 22:03:56 +02:00
= diff.new_path
- elsif diff.new_file
%span.new-file
%a{href: "#diff-#{i}"}
%i.icon-plus
2012-04-11 22:03:56 +02:00
= diff.new_path
- else
%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