[refs #579] grouped commits

This commit is contained in:
Alexander Machehin 2012-10-15 16:03:35 +06:00
parent b9d69a966b
commit 00323cec82
1 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,10 @@
- commits_queue = []
- merge_activity(@comments, @commits).each do |item| #
- if item.is_a? Grit::Commit
= render 'projects/git/commits/commits_small', :commits => [item]
-commits_queue << item
- elsif item.is_a? Array
= render 'projects/git/commits/commits_small', :commits => commits_queue if commits_queue.present?
-commits_queue.clear
= render 'projects/pull_requests/discussion_comments', :item => item, :project => @project, :commentable => @issue, :add_id => nil
= render 'projects/git/commits/commits_small', :commits => commits_queue if commits_queue.present?