From e694893e7e39d7ed70ab39297b398da462347009 Mon Sep 17 00:00:00 2001 From: JG Date: Tue, 7 Jun 2022 10:59:10 +0100 Subject: [PATCH] using helper to derrive plurality --- app/views/organisations/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/organisations/index.html.erb b/app/views/organisations/index.html.erb index c0587ab51..4b7590129 100644 --- a/app/views/organisations/index.html.erb +++ b/app/views/organisations/index.html.erb @@ -1,4 +1,4 @@ -<% item_label = @pagy.count > 1 ? "organisations" : "organisation" %> +<% item_label = format_label(@pagy.count, "organisation") %> <% if @searched.present? %> <% title = "Organisations (#{@pagy.count} #{item_label} matching ‘#{@searched}’)" %> <% else %>