diff --git a/app/views/commits/_diff.html.haml b/app/views/commits/_diff.html.haml index 190c95d..cf5ef60 100644 --- a/app/views/commits/_diff.html.haml +++ b/app/views/commits/_diff.html.haml @@ -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? diff --git a/app/views/commits/_diff_head.html.haml b/app/views/commits/_diff_head.html.haml index 6e32fca..20ec3cf 100644 --- a/app/views/commits/_diff_head.html.haml +++ b/app/views/commits/_diff_head.html.haml @@ -1,5 +1,5 @@ %ul.bordered-list - - @commit.diffs.each do |diff| + - diffs.each do |diff| %li - if diff.deleted_file %span.removed_file diff --git a/app/views/merge_requests/_diffs.html.haml b/app/views/merge_requests/_diffs.html.haml index ef6b0f1..9534da7 100644 --- a/app/views/merge_requests/_diffs.html.haml +++ b/app/views/merge_requests/_diffs.html.haml @@ -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) diff --git a/app/views/notes/_form.html.haml b/app/views/notes/_form.html.haml index 95a3b01..d67ab45 100644 --- a/app/views/notes/_form.html.haml +++ b/app/views/notes/_form.html.haml @@ -19,8 +19,7 @@ %br = f.label :attachment %cite.cgray (less than 10 MB) - %br - %br +   = f.file_field :attachment %p.notify_controls -- libgit2 0.21.2