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

27 lines
767 B
Text
Raw Normal View History

%ul.bordered-list
- diffs.each do |diff|
%li
- if diff.deleted_file
%span.removed_file
2012-04-11 16:03:56 -04:00
%a{:href => "##{diff.old_path}"}
= diff.old_path
= image_tag "diff_file_delete.png"
- elsif diff.renamed_file
%span.moved_file
2012-04-11 16:03:56 -04:00
%a{:href => "##{diff.new_path}"}
= diff.old_path
= "->"
2012-04-11 16:03:56 -04:00
= diff.new_path
= image_tag "diff_file_notice.png"
- elsif diff.new_file
%span.new_file
2012-04-11 16:03:56 -04:00
%a{:href => "##{diff.new_path}"}
= diff.new_path
= image_tag "diff_file_add.png"
- else
%span.edit_file
2012-04-11 16:03:56 -04:00
%a{:href => "##{diff.new_path}"}
= diff.new_path
= image_tag "diff_file_info.png"
2011-10-21 14:40:36 -04:00