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

22 lines
649 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.group_by { |c| c.committed_date.to_date }.sort.reverse.each do |day, commits|
2013-09-09 09:20:43 -04:00
.row.commits-row
2015-02-19 21:23:10 -05:00
.col-md-2.hidden-xs.hidden-sm
%h5.commits-row-date
2014-10-01 18:21:29 -04:00
%i.fa.fa-calendar
2016-01-06 16:35:17 -05:00
%span= day.strftime('%d %b, %Y')
2015-02-19 21:23:10 -05:00
.light
= pluralize(commits.count, 'commit')
.col-md-10.col-sm-12
%ul.content-list
= render commits, project: project
2013-09-10 03:17:15 -04:00
%hr.lists-separator
- if hidden > 0
.alert.alert-warning
2016-03-09 06:00:17 -05:00
#{number_with_delimiter(hidden)} additional commits have been omitted to prevent performance issues.