app/views/administrate/application/_navigation.html.erb in administrate-0.12.0 vs app/views/administrate/application/_navigation.html.erb in administrate-0.13.0

- old
+ new

@@ -6,13 +6,15 @@ for all resources in the admin dashboard, as defined by the routes in the `admin/` namespace %> <nav class="navigation" role="navigation"> + <%= link_to "Back to app", root_url, class: "button button--alt" %> + <% Administrate::Namespace.new(namespace).resources.each do |resource| %> <%= link_to( display_resource_name(resource), [namespace, resource_index_route_key(resource)], class: "navigation__link navigation__link--#{nav_link_state(resource)}" - ) %> + ) if valid_action? :index, resource %> <% end %> </nav>