debian-mirror-gitlab/app/views/projects/commits/_commits.html.haml

22 lines
646 B
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
- unless defined?(project)
- project = @project
2016-06-02 11:05:42 +05:30
- commits, hidden = limited_commits(@commits)
- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, commits|
2014-09-02 18:07:02 +05:30
.row.commits-row
2015-04-26 12:48:37 +05:30
.col-md-2.hidden-xs.hidden-sm
%h5.commits-row-date
%i.fa.fa-calendar
%span= day.strftime('%d %b, %Y')
2015-04-26 12:48:37 +05:30
.light
= pluralize(commits.count, 'commit')
.col-md-10.col-sm-12
2016-06-02 11:05:42 +05:30
%ul.content-list
2015-04-26 12:48:37 +05:30
= render commits, project: project
2014-09-02 18:07:02 +05:30
%hr.lists-separator
2016-06-02 11:05:42 +05:30
- if hidden > 0
.alert.alert-warning
#{number_with_delimiter(hidden)} additional commits have been omitted to prevent performance issues.