summaryrefslogtreecommitdiff
path: root/app/views/projects/commits/_commits.html.haml
blob: fcc367951ad30a53b42841fac20db06462aa40f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- ref = local_assigns.fetch(:ref)
- commits, hidden = limited_commits(@commits)

- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, commits|
  %li.commit-header= "#{day.strftime('%d %b, %Y')} #{pluralize(commits.count, 'commit')}"
  %li.commits-row
    %ul.content-list.commit-list.table-list.table-wide
      = render commits, project: project, ref: ref

- if hidden > 0
  %li.alert.alert-warning
    #{number_with_delimiter(hidden)} additional commits have been omitted to prevent performance issues.