Browse Source

feat: fix pluralise to default to plural rather than singular

pull/950/head
natdeanlewissoftwire 4 years ago
parent
commit
96474d7c92
  1. 2
      app/views/logs/index.html.erb
  2. 2
      app/views/organisation_relationships/housing_providers.html.erb
  3. 2
      app/views/organisations/index.html.erb
  4. 2
      app/views/organisations/logs.html.erb

2
app/views/logs/index.html.erb

@ -1,4 +1,4 @@
<% item_label = format_label(@pagy.count, "log") %>
<% item_label = format_label(@pagy.count, "logs") %>
<% title = format_title(@searched, "Logs", current_user, item_label, @pagy.count, nil) %>
<% content_for :title, title %>

2
app/views/organisation_relationships/housing_providers.html.erb

@ -1,4 +1,4 @@
<% item_label = format_label(@pagy.count, "housing provider") %>
<% item_label = format_label(@pagy.count, "housing providers") %>
<% title = "Housing Providers" %>
<% content_for :title, title %>
<% if current_user.support? %>

2
app/views/organisations/index.html.erb

@ -1,4 +1,4 @@
<% item_label = format_label(@pagy.count, "organisation") %>
<% item_label = format_label(@pagy.count, "organisations") %>
<% title = format_title(@searched, "Organisations", current_user, item_label, @pagy.count, nil) %>
<% content_for :title, title %>

2
app/views/organisations/logs.html.erb

@ -1,4 +1,4 @@
<% item_label = format_label(@pagy.count, "log") %>
<% item_label = format_label(@pagy.count, "logs") %>
<% title = format_title(@searched, "Logs", current_user, item_label, @pagy.count, @organisation.name) %>
<% content_for :title, title %>

Loading…
Cancel
Save