Skip to content

Commit

Permalink
Singularize object creation form resource name. (#2684)
Browse files Browse the repository at this point in the history
Currently the resource name on the object creation
form is showing in plural form.

This commit adds a `singular: true' parameter
to the display_resource_name method in the
object creation view to explicitly show the
resource name in singular form.
  • Loading branch information
Tresor11 authored Nov 16, 2024
1 parent 8c95705 commit 2eee100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/administrate/application/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ to do the heavy lifting.
<% content_for(:title) do %>
<%= t(
"administrate.actions.new_resource",
name: display_resource_name(page.resource_name).titleize
name: display_resource_name(page.resource_name, singular: true)
) %>
<% end %>

Expand Down

0 comments on commit 2eee100

Please sign in to comment.