diff options
author | Mark Chao <mchao@gitlab.com> | 2018-05-18 04:50:01 +0300 |
---|---|---|
committer | Mark Chao <mchao@gitlab.com> | 2018-05-18 04:50:01 +0300 |
commit | a660f548966bc8232cb56c4e344b0da3c91b3701 (patch) | |
tree | 0b901111646b4a12ce2013f18137ee7f43ee62e5 /app/views/notify | |
parent | 953bb41f25270c07ab12c17472ef0fe8ab848301 (diff) |
Plural reason(s)
Diffstat (limited to 'app/views/notify')
-rw-r--r-- | app/views/notify/merge_request_unmergeable_email.html.haml | 4 | ||||
-rw-r--r-- | app/views/notify/merge_request_unmergeable_email.text.haml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/notify/merge_request_unmergeable_email.html.haml b/app/views/notify/merge_request_unmergeable_email.html.haml index f51a31c0eda..e84905a5fad 100644 --- a/app/views/notify/merge_request_unmergeable_email.html.haml +++ b/app/views/notify/merge_request_unmergeable_email.html.haml @@ -1,6 +1,6 @@ %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 reason(s): + 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')}: %ul - - @merge_request_presenter.unmergeable_reasons.each do |reason| + - @reasons.each do |reason| %li= reason diff --git a/app/views/notify/merge_request_unmergeable_email.text.haml b/app/views/notify/merge_request_unmergeable_email.text.haml index 2acf0de34fc..4f0901c761a 100644 --- a/app/views/notify/merge_request_unmergeable_email.text.haml +++ b/app/views/notify/merge_request_unmergeable_email.text.haml @@ -1,6 +1,6 @@ -Merge Request #{@merge_request.to_reference} can no longer be merged due to the following reason(s): +Merge Request #{@merge_request.to_reference} can no longer be merged due to the following #{pluralize(@reasons, 'reason')}: -- @merge_request_presenter.unmergeable_reasons.each do |reason| +- @reasons.each do |reason| * #{reason} Merge Request url: #{project_merge_request_url(@merge_request.target_project, @merge_request)} |