pull diff small refactoring
This commit is contained in:
parent
dcde3aa369
commit
eb9ce47723
|
@ -20,3 +20,4 @@ crash.log
|
|||
config/newrelic.yml
|
||||
config/deploy/*.rb
|
||||
config/deploy.rb
|
||||
*.swo
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
.file
|
||||
%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.a_path.rtruncate(120))
|
||||
- if pull_diff.b_path.present?
|
||||
.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)
|
||||
.clear
|
||||
-if pull_diff.diff.present? && !(@pull.repo.tree(commit_id) / pull_diff.b_path).binary?
|
||||
|
|
Loading…
Reference in New Issue