gitlab-org--gitlab-foss/app/views/projects/commits/_commits.html.haml

15 lines
514 B
Text
Raw Normal View History

2015-01-17 17:54:54 -05:00
- unless defined?(project)
- project = @project
- commits, hidden = limited_commits(@commits)
2015-01-17 17:54:54 -05:00
- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, commits|
2016-05-24 03:28:18 -04:00
%li.commit-header= "#{day.strftime('%d %b, %Y')} #{pluralize(commits.count, 'commit')}"
%li.commits-row
%ul.list-unstyled.commit-list
= render commits, project: project
- if hidden > 0
2016-05-24 03:28:18 -04:00
%li.alert.alert-warning
2016-03-09 06:00:17 -05:00
#{number_with_delimiter(hidden)} additional commits have been omitted to prevent performance issues.