gitlab-org--gitlab-foss/app/views/projects/commits/_commits.html.haml
Phil Hughes 8827eea864 Updated commits UI
Closes #14633
2016-06-08 10:10:18 +01:00

14 lines
514 B
Text

- unless defined?(project)
- project = @project
- 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
- if hidden > 0
%li.alert.alert-warning
#{number_with_delimiter(hidden)} additional commits have been omitted to prevent performance issues.