gitlab-org--gitlab-foss/app/views/projects/commits/_commits.html.haml
Simon Knox 591f0e2258 consistent spacing on new MR panels
center spinner
show placeholder text on new MR page
remove redundant `display: block` from li - they default to `list-style` already
2017-03-07 08:44:22 +11:00

12 lines
503 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.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.