app/views/administrate/application/index.html.erb in administrate-0.4.0 vs app/views/administrate/application/index.html.erb in administrate-0.5.0
- old
+ new
@@ -35,13 +35,13 @@
<header class="header">
<h1 class="header__heading" id="page-title"><%= content_for(:title) %></h1>
<div class="header__actions">
<%= link_to(
- "New #{page.resource_name.titleize.downcase}",
+ "#{t("administrate.actions.new")} #{page.resource_name.titleize.downcase}",
[:new, namespace, page.resource_name],
class: "button",
- ) %>
+ ) if valid_action? :new %>
</div>
</header>
<%= render "collection", collection_presenter: page, resources: resources %>