diff options
author | Jan <king-jan1999@hotmail.de> | 2018-03-19 11:53:35 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-03-19 11:53:35 +0000 |
commit | d5079b626c3b07d97d9399594d23e5474e6359de (patch) | |
tree | b5f4c181b932495451e5125327698b794fe23666 /app/views/projects/diffs | |
parent | 3488382a9aa4815a785003963be56a098527ec5d (diff) | |
download | gitlab-ce-d5079b626c3b07d97d9399594d23e5474e6359de.tar.gz |
Resolve "GitLab Community Edition 10.5.3 shows plural for 1 item"
Diffstat (limited to 'app/views/projects/diffs')
-rw-r--r-- | app/views/projects/diffs/_stats.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/diffs/_stats.html.haml b/app/views/projects/diffs/_stats.html.haml index b082ad0ef0e..6fd6018dea3 100644 --- a/app/views/projects/diffs/_stats.html.haml +++ b/app/views/projects/diffs/_stats.html.haml @@ -7,9 +7,9 @@ = icon("caret-down", class: "prepend-left-5") %span.diff-stats-additions-deletions-expanded#diff-stats with - %strong.cgreen #{sum_added_lines} additions + %strong.cgreen= pluralize(sum_added_lines, 'addition') and - %strong.cred #{sum_removed_lines} deletions + %strong.cred= pluralize(sum_removed_lines, 'deletion') .diff-stats-additions-deletions-collapsed.pull-right.hidden-xs.hidden-sm{ "aria-hidden": "true", "aria-describedby": "diff-stats" } %strong.cgreen< +#{sum_added_lines} |