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

30 lines
825 B
Plaintext
Raw Normal View History

2011-11-21 08:16:10 +01:00
%table
%thead
%th Files
- @commit.diffs.each do |diff|
%tr
%td
- if diff.deleted_file
%span.removed_file
%a{:href => "##{diff.a_path}"}
= diff.a_path
= image_tag "blueprint_delete.png"
- elsif diff.renamed_file
%span.moved_file
%a{:href => "##{diff.b_path}"}
= diff.a_path
= "->"
= diff.b_path
= image_tag "blueprint_notice.png"
- elsif diff.new_file
%span.new_file
%a{:href => "##{diff.b_path}"}
= diff.b_path
= image_tag "blueprint_add.png"
- else
%span.edit_file
%a{:href => "##{diff.b_path}"}
= diff.b_path
= image_tag "blueprint_info.png"
2011-10-21 20:40:36 +02:00