diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-25 00:10:07 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-25 00:10:07 +0000 |
commit | ad28c03c2a5432da44b1d68900f9578ab411356d (patch) | |
tree | 3e702ef15f366ca8779321fb602f92272621602e /app/views/projects/commits/_commits.html.haml | |
parent | cfc6fe51003de30653a5ce48f1a1b7f46fc9075d (diff) | |
download | gitlab-ce-ad28c03c2a5432da44b1d68900f9578ab411356d.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/projects/commits/_commits.html.haml')
-rw-r--r-- | app/views/projects/commits/_commits.html.haml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/views/projects/commits/_commits.html.haml b/app/views/projects/commits/_commits.html.haml index 2e5953bf0a6..e413bd78789 100644 --- a/app/views/projects/commits/_commits.html.haml +++ b/app/views/projects/commits/_commits.html.haml @@ -4,22 +4,21 @@ - commits = @commits - hidden = @hidden_commit_count -- commits_count = @commits.size -- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, commits| +- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, daily_commits| %li.commit-header.js-commit-header{ data: { day: day } } %span.day= l(day, format: '%d %b, %Y') - %span.commits-count= n_("%d commit", "%d commits", commits_count) % commits_count + %span.commits-count= n_("%d commit", "%d commits", daily_commits.size) % daily_commits.size %li.commits-row{ data: { day: day } } %ul.content-list.commit-list.flex-list - = render partial: 'projects/commits/commit', collection: commits, locals: { project: project, ref: ref, merge_request: merge_request } + = render partial: 'projects/commits/commit', collection: daily_commits, locals: { project: project, ref: ref, merge_request: merge_request } - if hidden > 0 %li.alert.alert-warning = n_('%s additional commit has been omitted to prevent performance issues.', '%s additional commits have been omitted to prevent performance issues.', hidden) % number_with_delimiter(hidden) -- if commits_count == 0 +- if commits.size == 0 .mt-4.text-center .bold = _('Your search didn\'t match any commits.') |