Commit 16a98387 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

merge reques diff: files list displayed

parent 5c6417ce
.file_stats .file_stats
= render "commits/diff_head" = render "commits/diff_head", :diffs => @commit.diffs
- @commit.diffs.each_with_index do |diff, i| - @commit.diffs.each_with_index do |diff, i|
- next if diff.diff.empty? - next if diff.diff.empty?
......
%ul.bordered-list %ul.bordered-list
- @commit.diffs.each do |diff| - diffs.each do |diff|
%li %li
- if diff.deleted_file - if diff.deleted_file
%span.removed_file %span.removed_file
......
.file_stats
= render "commits/diff_head", :diffs => @diffs
- @diffs.each_with_index do |diff, i| - @diffs.each_with_index do |diff, i|
- next if diff.diff.empty? - next if diff.diff.empty?
- file = (@commit.tree / diff.b_path) - file = (@commit.tree / diff.b_path)
......
...@@ -19,8 +19,7 @@ ...@@ -19,8 +19,7 @@
%br %br
= f.label :attachment = f.label :attachment
%cite.cgray (less than 10 MB) %cite.cgray (less than 10 MB)
%br  
%br
= f.file_field :attachment = f.file_field :attachment
%p.notify_controls %p.notify_controls
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment