Commit 16a98387c24e095a930b18f65065d0ea26eb6a12

Authored by Dmitriy Zaporozhets
1 parent 5c6417ce

merge reques diff: files list displayed

app/views/commits/_diff.html.haml
1 .file_stats 1 .file_stats
2 - = render "commits/diff_head" 2 + = render "commits/diff_head", :diffs => @commit.diffs
3 3
4 - @commit.diffs.each_with_index do |diff, i| 4 - @commit.diffs.each_with_index do |diff, i|
5 - next if diff.diff.empty? 5 - next if diff.diff.empty?
app/views/commits/_diff_head.html.haml
1 %ul.bordered-list 1 %ul.bordered-list
2 - - @commit.diffs.each do |diff| 2 + - diffs.each do |diff|
3 %li 3 %li
4 - if diff.deleted_file 4 - if diff.deleted_file
5 %span.removed_file 5 %span.removed_file
app/views/merge_requests/_diffs.html.haml
  1 +.file_stats
  2 + = render "commits/diff_head", :diffs => @diffs
1 - @diffs.each_with_index do |diff, i| 3 - @diffs.each_with_index do |diff, i|
2 - next if diff.diff.empty? 4 - next if diff.diff.empty?
3 - file = (@commit.tree / diff.b_path) 5 - file = (@commit.tree / diff.b_path)
app/views/notes/_form.html.haml
@@ -19,8 +19,7 @@ @@ -19,8 +19,7 @@
19 %br 19 %br
20 = f.label :attachment 20 = f.label :attachment
21 %cite.cgray (less than 10 MB) 21 %cite.cgray (less than 10 MB)
22 - %br  
23 - %br 22 +  
24 = f.file_field :attachment 23 = f.file_field :attachment
25 24
26 %p.notify_controls 25 %p.notify_controls