Sha256: 18d30900d89d9ef7b35d5cf77cd50f8abdf8437eb8ccdc2d8c12194dafdeeba0

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 Bytes

Contents

<%#
# Navigation

This partial is used to display the navigation in Administrate.
By default, the navigation contains navigation links
for all resources in the admin dashboard,
as defined by the routes in the `admin/` namespace
%>
<% Administrate::Namespace.new(namespace).resources.each do |resource| %>
  <%= link_to(
    [namespace, resource_index_route_key(resource)],
    class: "nav-drawer__menu-item nav-drawer__menu-item--#{nav_link_state(resource)}"
  ) do %>
    <%= display_resource_name(resource) %>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
semantic-administrate-0.10.0 app/views/administrate/application/_navigation_links.html.erb
semantic-administrate-0.1.1 app/views/administrate/application/_navigation_links.html.erb
semantic-administrate-0.1.0 app/views/administrate/application/_navigation_links.html.erb