summaryrefslogtreecommitdiff
path: root/app/views/notify
diff options
context:
space:
mode:
authorMark Chao <mchao@gitlab.com>2018-05-26 12:39:20 +0800
committerMark Chao <mchao@gitlab.com>2018-05-31 23:13:20 +0900
commit180685be976403bff6e152b2749618d1f8b9b348 (patch)
tree0fbc7451cb28ae2a00b5cf613369f21848ea801a /app/views/notify
parentde12348ee8534b2a4310c81898e7151dd7616095 (diff)
downloadgitlab-ce-180685be976403bff6e152b2749618d1f8b9b348.tar.gz
Fix merge request unmergeable notification email plural interpolation46840-fix-merge-request-unmergeable-email-plural
Diffstat (limited to 'app/views/notify')
-rw-r--r--app/views/notify/merge_request_unmergeable_email.html.haml2
-rw-r--r--app/views/notify/merge_request_unmergeable_email.text.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/notify/merge_request_unmergeable_email.html.haml b/app/views/notify/merge_request_unmergeable_email.html.haml
index e84905a5fad..578fa1fbce7 100644
--- a/app/views/notify/merge_request_unmergeable_email.html.haml
+++ b/app/views/notify/merge_request_unmergeable_email.html.haml
@@ -1,5 +1,5 @@
%p
- Merge Request #{link_to @merge_request.to_reference, project_merge_request_url(@merge_request.target_project, @merge_request)} can no longer be merged due to the following #{pluralize(@reasons, 'reason')}:
+ Merge Request #{link_to @merge_request.to_reference, project_merge_request_url(@merge_request.target_project, @merge_request)} can no longer be merged due to the following #{'reason'.pluralize(@reasons.count)}:
%ul
- @reasons.each do |reason|
diff --git a/app/views/notify/merge_request_unmergeable_email.text.haml b/app/views/notify/merge_request_unmergeable_email.text.haml
index 4f0901c761a..e4f9f1bf5e7 100644
--- a/app/views/notify/merge_request_unmergeable_email.text.haml
+++ b/app/views/notify/merge_request_unmergeable_email.text.haml
@@ -1,4 +1,4 @@
-Merge Request #{@merge_request.to_reference} can no longer be merged due to the following #{pluralize(@reasons, 'reason')}:
+Merge Request #{@merge_request.to_reference} can no longer be merged due to the following #{'reason'.pluralize(@reasons.count)}:
- @reasons.each do |reason|
* #{reason}