2016-11-04 14:43:43 +00:00
- ref = local_assigns.fetch(:ref)
2016-03-04 14:45:58 +00:00
- commits, hidden = limited_commits(@commits)
2015-01-17 22:54:54 +00:00
2016-05-18 16:38:00 +00:00
- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, commits|
2017-06-03 01:40:20 +00:00
%li.commit-header.js-commit-header{ data: { day: day } }
2017-06-09 16:17:16 +00:00
%span.day= l(day, format: '%d %b, %Y')
%span.commits-count= n_("%d commit", "%d commits", commits.count) % commits.count
2017-06-03 01:40:20 +00:00
%li.commits-row{ data: { day: day } }
2017-02-28 03:31:21 +00:00
%ul.content-list.commit-list
2017-06-13 22:12:31 +00:00
= render partial: 'projects/commits/commit', collection: commits, locals: { project: project, ref: ref }
2016-03-04 14:20:30 +00:00
2016-03-04 14:45:58 +00:00
- if hidden > 0
2016-05-24 07:28:18 +00:00
%li.alert.alert-warning
2017-07-05 15:54:33 +00:00
= 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)