gitlabhq/gitlabhq

View on GitHub
app/views/projects/commits/_commits.html.haml

Summary

Maintainability
Test Coverage
- @commits.group_by { |c| c.committed_date.to_date }.sort.reverse.each do |day, commits|
  .row.commits-row
    .span2
      %h4
        %i.icon-calendar
        %span= day.stamp("28 Aug, 2010")
      %p= pluralize(commits.count, 'commit')
    .span10
      %ul.well-list
        = render commits, project: @project
  %hr.lists-separator