99410a4750
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7034/diffs#note_17868074
12 lines
507 B
Text
12 lines
507 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= "#{day.strftime('%d %b, %Y')} #{pluralize(commits.count, 'commit')}"
|
|
%li.commits-row
|
|
%ul.list-unstyled.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.
|