summaryrefslogtreecommitdiff
path: root/app/views/projects/diffs
diff options
context:
space:
mode:
authorJan <king-jan1999@hotmail.de>2018-03-19 11:53:35 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-03-19 11:53:35 +0000
commitd5079b626c3b07d97d9399594d23e5474e6359de (patch)
treeb5f4c181b932495451e5125327698b794fe23666 /app/views/projects/diffs
parent3488382a9aa4815a785003963be56a098527ec5d (diff)
downloadgitlab-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.haml4
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}