- @commits.group_by { |c| c.committed_date.to_date }.each do |day, commits| %div{ :class => "commits-date ui-box ui-box-small ui-box-big" } .day-commits-table %h5.underlined= day.stamp("28 Aug, 2010") %ul.unstyled - commits.each do |commit| %li.wll %a{ :class => "update-item", :href => project_commit_path(@project, :id => commit.id) } .right.btn = truncate(commit.id.to_s, :length => 10) ยป = image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 32 %span.update-author %strong= commit.author_name – = time_ago_in_words(commit.committed_date) ago %p %strong = truncate(commit.safe_message, :length => 50)