merge reques diff: files list displayed

This commit is contained in:
Dmitriy Zaporozhets 2012-01-23 21:08:12 +02:00
parent 5c6417ce07
commit 16a98387c2
4 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,5 @@
.file_stats
= render "commits/diff_head"
= render "commits/diff_head", :diffs => @commit.diffs
- @commit.diffs.each_with_index do |diff, i|
- next if diff.diff.empty?

View file

@ -1,5 +1,5 @@
%ul.bordered-list
- @commit.diffs.each do |diff|
- diffs.each do |diff|
%li
- if diff.deleted_file
%span.removed_file

View file

@ -1,3 +1,5 @@
.file_stats
= render "commits/diff_head", :diffs => @diffs
- @diffs.each_with_index do |diff, i|
- next if diff.diff.empty?
- file = (@commit.tree / diff.b_path)

View file

@ -19,8 +19,7 @@
%br
= f.label :attachment
%cite.cgray (less than 10 MB)
%br
%br
 
= f.file_field :attachment
%p.notify_controls