| ... | @@ -4,11 +4,12 @@ |
... | @@ -4,11 +4,12 @@ |
|
|
- diffs.each_with_index do |diff, i|
|
|
- diffs.each_with_index do |diff, i|
|
|
|
- next if diff.diff.empty?
|
|
- next if diff.diff.empty?
|
|
|
- file = (@commit.tree / diff.b_path)
|
|
- file = (@commit.tree / diff.b_path)
|
|
|
|
- file = (@commit.prev_commit.tree / diff.a_path) unless file
|
|
|
- next unless file
|
|
- next unless file
|
|
|
.diff_file
|
|
.diff_file
|
|
|
.diff_file_header
|
|
.diff_file_header
|
|
|
- if diff.deleted_file
|
|
- if diff.deleted_file
|
|
|
%strong{:id => "#{diff.b_path}"}= diff.a_path
|
|
%strong{:id => "#{diff.a_path}"}= diff.a_path
|
|
|
- else
|
|
- else
|
|
|
= link_to tree_file_project_ref_path(@project, @commit.id, diff.b_path) do
|
|
= link_to tree_file_project_ref_path(@project, @commit.id, diff.b_path) do
|
|
|
%strong{:id => "#{diff.b_path}"}= diff.b_path
|
|
%strong{:id => "#{diff.b_path}"}= diff.b_path
|
| ... | |
... | |
| ... | | ... | |