fix blob path

This commit is contained in:
Alexander Machehin 2014-10-01 17:20:20 +06:00
parent a1151daab1
commit 04cd31043e
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
%a{name: "diff-#{pull_diff_counter}"}
.top
.l= h(pull_diff.renamed_file ? "#{pull_diff.a_path.rtruncate 60}=>#{pull_diff.b_path.rtruncate 60}" : pull_diff.b_path.rtruncate(120))
.r= link_to "view file @ #{short_hash_id(commit_id)}", blob_path(@project, commit_id, pull_diff.b_path)
.r= link_to "view file @ #{short_hash_id(commit_id)}", blob_path(@pull.from_project, commit_id, pull_diff.b_path)
.clear
-if pull_diff.diff.present? && !(@pull.repo.tree(commit_id) / pull_diff.b_path).binary?
.diff_data=render_diff(pull_diff, diff_counter: pull_diff_counter, comments: @comments)