app/views/administrate/application/new.html.erb in semantic-administrate-0.1.0 vs app/views/administrate/application/new.html.erb in semantic-administrate-0.1.1

- old
+ new

@@ -13,10 +13,15 @@ and knows which attributes should be displayed in the resource's form. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Page/Form %> -<% content_for(:title) { "#{t("administrate.actions.new")} #{page.resource_name.titleize}" } %> +<% content_for(:title) do %> + <%= t( + "administrate.actions.new_resource", + name: display_resource_name(page.resource_name).titleize + ) %> +<% end %> <header class="main-content__header" role="banner"> <h1 class="main-content__page-title"> <%= content_for(:title) %> </h1>