diff --git a/app/views/case_logs/index.html.erb b/app/views/case_logs/index.html.erb index c59d4f255..6a374d993 100644 --- a/app/views/case_logs/index.html.erb +++ b/app/views/case_logs/index.html.erb @@ -1,4 +1,4 @@ -<% item_label = @pagy.count > 1 ? "logs" : "log" %> +<% item_label = format_label(@pagy.count, "log") %> <% if @searched.present? %> <% title = "#{current_user.support? ? 'Logs' : current_user.organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’)" %> <% else %> diff --git a/app/views/organisations/logs.html.erb b/app/views/organisations/logs.html.erb index e9230f3e7..b22f4370d 100644 --- a/app/views/organisations/logs.html.erb +++ b/app/views/organisations/logs.html.erb @@ -1,4 +1,4 @@ -<% item_label = @pagy.count > 1 ? "logs" : "log" %> +<% item_label = format_label(@pagy.count, "log") %> <% if @searched.present? %> <% title = "#{@organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’)" %> <% else %> diff --git a/app/views/organisations/users.html.erb b/app/views/organisations/users.html.erb index 1776bc4cd..595cc23de 100644 --- a/app/views/organisations/users.html.erb +++ b/app/views/organisations/users.html.erb @@ -1,4 +1,4 @@ -<% item_label = @pagy.count > 1 ? "users" : "user" %> +<% item_label = format_label(@pagy.count, "user") %> <% if @searched.present? %> <% title = "#{@organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’" %> <% else %> diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 81e4c3fa0..0c7b65202 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -1,4 +1,4 @@ -<% item_label = @pagy.count > 1 ? "users" : "user" %> +<% item_label = format_label(@pagy.count, "user") %> <% if @searched.present? %> <% title = "#{current_user.support? ? 'Users' : current_user.organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’" %> <% else %>