Browse Source

using helper to derrive plurality

pull/643/head
JG 3 years ago
parent
commit
e694893e7e
  1. 2
      app/views/organisations/index.html.erb

2
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 %>

Loading…
Cancel
Save