diff options
author | Mark Fletcher <mark@gitlab.com> | 2017-09-07 18:07:31 +1000 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2017-10-06 18:51:55 +0700 |
commit | 9137114355ddd36c72d0847e23b3bc66acde1a1e (patch) | |
tree | 036a89e28099ad0ade428a5ae0163816c59ef0d8 /app/views/events | |
parent | 6c33fb846683ca9213dadaa79b0f32f482ebc0bf (diff) | |
download | gitlab-ce-9137114355ddd36c72d0847e23b3bc66acde1a1e.tar.gz |
Fix the number representing the amount of commits related to a push event
Diffstat (limited to 'app/views/events')
-rw-r--r-- | app/views/events/event/_push.html.haml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/events/event/_push.html.haml b/app/views/events/event/_push.html.haml index 53ebdd6d2ff..9a763887b30 100644 --- a/app/views/events/event/_push.html.haml +++ b/app/views/events/event/_push.html.haml @@ -19,8 +19,7 @@ - create_mr = event.new_ref? && create_mr_button?(project.default_branch, event.ref_name, project) && event.authored_by?(current_user) - if event.commits_count > 1 %li.commits-stat - - if event.commits_count > 2 - %span ... and #{event.commits_count - 2} more commits. + %span ... and #{pluralize(event.commits_count - 1, 'more commit')}. - if event.md_ref? - from = event.commit_from |