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

26 lines
773 B
Plaintext
Raw Normal View History

2015-01-17 22:54:54 +00:00
- unless defined?(project)
- project = @project
- 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
- 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
%ul.bordered-list
= render commits, project: project
2013-09-10 07:17:15 +00:00
%hr.lists-separator
- if overflow
.alert.alert-warning
Not shown: #{@commits.size - MergeRequestDiff::COMMITS_SAFE_SIZE} more commits