21 lines
646 B
Text
21 lines
646 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|
|
|
.row.commits-row
|
|
.col-md-2.hidden-xs.hidden-sm
|
|
%h5.commits-row-date
|
|
%i.fa.fa-calendar
|
|
%span= day.strftime('%d %b, %Y')
|
|
.light
|
|
= pluralize(commits.count, 'commit')
|
|
.col-md-10.col-sm-12
|
|
%ul.content-list
|
|
= render commits, project: project
|
|
%hr.lists-separator
|
|
|
|
- if hidden > 0
|
|
.alert.alert-warning
|
|
#{number_with_delimiter(hidden)} additional commits have been omitted to prevent performance issues.
|