15 lines
599 B
Text
15 lines
599 B
Text
- 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.js-commit-header{ data: { day: day } }
|
|
%span.day= day.strftime('%d %b, %Y')
|
|
%span.commits-count= pluralize(commits.count, 'commit')
|
|
|
|
%li.commits-row{ data: { day: day } }
|
|
%ul.content-list.commit-list
|
|
= 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.
|