2015-01-17 22:54:54 +00:00
|
|
|
- unless defined?(project)
|
|
|
|
- project = @project
|
2016-03-04 14:20:30 +00:00
|
|
|
- if @commits.size > MergeRequestDiff::COMMITS_SAFE_SIZE
|
|
|
|
- commits = @commits.first(MergeRequestDiff::COMMITS_SAFE_SIZE)
|
|
|
|
- overflow = true
|
|
|
|
- else
|
|
|
|
- commits = @commits
|
|
|
|
- overflow = false
|
2015-01-17 22:54:54 +00:00
|
|
|
|
2016-03-04 14:20:30 +00:00
|
|
|
- commits.group_by { |c| c.committed_date.to_date }.sort.reverse.each do |day, commits|
|
2013-09-09 13:20:43 +00:00
|
|
|
.row.commits-row
|
2015-02-20 02:23:10 +00:00
|
|
|
.col-md-2.hidden-xs.hidden-sm
|
|
|
|
%h5.commits-row-date
|
2014-10-01 22:21:29 +00:00
|
|
|
%i.fa.fa-calendar
|
2016-01-06 21:35:17 +00:00
|
|
|
%span= day.strftime('%d %b, %Y')
|
2015-02-20 02:23:10 +00:00
|
|
|
.light
|
|
|
|
= pluralize(commits.count, 'commit')
|
|
|
|
.col-md-10.col-sm-12
|
2014-06-10 19:01:56 +00:00
|
|
|
%ul.bordered-list
|
2015-01-06 23:39:33 +00:00
|
|
|
= render commits, project: project
|
2013-09-10 07:17:15 +00:00
|
|
|
%hr.lists-separator
|
2016-03-04 14:20:30 +00:00
|
|
|
|
|
|
|
- if overflow
|
|
|
|
.alert.alert-warning
|
|
|
|
Not shown: #{@commits.size - MergeRequestDiff::COMMITS_SAFE_SIZE} more commits
|