BigW Consortium Gitlab

_commits.html.haml 787 Bytes
Newer Older
1
- ref = local_assigns.fetch(:ref)
2
- commits, hidden = limited_commits(@commits)
3

4
- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, commits|
5
  %li.commit-header.js-commit-header{ data: { day: day } }
6 7
    %span.day= l(day, format: '%d %b, %Y')
    %span.commits-count= n_("%d commit", "%d commits", commits.count) % commits.count
8 9

  %li.commits-row{ data: { day: day } }
10
    %ul.content-list.commit-list.flex-list
11
      = render partial: 'projects/commits/commit', collection: commits, locals: { project: project, ref: ref }
12

13
- if hidden > 0
Phil Hughes committed
14
  %li.alert.alert-warning
15
    = n_('%s additional commit has been omitted to prevent performance issues.', '%s additional commits have been omitted to prevent performance issues.', hidden) % number_with_delimiter(hidden)