summaryrefslogtreecommitdiff
path: root/app/views/projects/commits/_commits.html.haml
blob: 6c6312280023ede5e730389b5ac775a8b3822be3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- unless defined?(project)
  - project = @project

- @commits.group_by { |c| c.committed_date.to_date }.sort.reverse.each do |day, commits|
  .row.commits-row
    .col-md-2.hidden-xs.hidden-sm
      %h5.commits-row-date
        %i.fa.fa-calendar
        %span= day.strftime('%d %b, %Y')
      .light
        = pluralize(commits.count, 'commit')
    .col-md-10.col-sm-12
      %ul.bordered-list
        = render commits, project: project
  %hr.lists-separator