From 48bc9e36235e2348eae77be461863b78896fdcf7 Mon Sep 17 00:00:00 2001 From: Liam Monahan Date: Tue, 7 Oct 2014 12:50:13 -0400 Subject: Correctly pluralize participants on issue show page. --- app/views/projects/issues/show.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/projects/issues/show.html.haml b/app/views/projects/issues/show.html.haml index e1849b3f8b8..71eb0d5c866 100644 --- a/app/views/projects/issues/show.html.haml +++ b/app/views/projects/issues/show.html.haml @@ -62,7 +62,8 @@ = link_to 'Close Issue', project_issue_path(@project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn btn-grouped btn-close js-note-target-close", title: "Close Issue" .participants - %cite.cgray #{@issue.participants.count} participants + %cite.cgray + = pluralize(@issue.participants.count, 'participant') - @issue.participants.each do |participant| = link_to_member(@project, participant, name: false, size: 24) -- cgit v1.2.1