2012-10-18 13:50:43 +01:00
|
|
|
- commit_id = pull_diff.deleted_file ? @pull.to_commit.id : @pull.from_commit.id
|
2012-05-31 12:16:34 +01:00
|
|
|
.file
|
2012-06-07 20:20:06 +01:00
|
|
|
%a{:name => "diff-#{pull_diff_counter}"}
|
2012-05-31 12:16:34 +01:00
|
|
|
.top
|
2012-06-08 08:38:24 +01:00
|
|
|
.l= h(pull_diff.renamed_file ? "#{pull_diff.a_path.rtruncate 60} -> #{pull_diff.b_path.rtruncate 60}" : pull_diff.a_path.rtruncate(120))
|
2012-05-31 12:16:34 +01:00
|
|
|
- if pull_diff.b_path.present?
|
|
|
|
.r= link_to "view file @ #{short_hash_id(commit_id)}", blob_path(@project, commit_id, pull_diff.b_path)
|
|
|
|
.clear
|
2012-10-16 11:19:53 +01:00
|
|
|
-if pull_diff.diff.present? && !(@pull.repo.tree(commit_id) / pull_diff.b_path).binary?
|
2012-10-15 19:19:22 +01:00
|
|
|
.diff_data=render_diff(pull_diff, pull_diff_counter, @comments)
|