Sha256: 89729da4925d83d098bc80a5f364c1fb6b68802571c4bdd5b0b71aef6c706070

Contents?: true

Size: 547 Bytes

Versions: 3

Compression:

Stored size: 547 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
%>

<nav class="navigation" role="navigation">
  <% Administrate::Namespace.new(namespace).resources.each do |resource| %>
    <%= link_to(
      display_resource_name(resource),
      [namespace, resource.path],
      class: "navigation__link navigation__link--#{nav_link_state(resource)}"
    ) %>
  <% end %>
</nav>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
administrate-0.8.1 app/views/administrate/application/_navigation.html.erb
administrate-0.8.0 app/views/administrate/application/_navigation.html.erb
administrate-0.7.0 app/views/administrate/application/_navigation.html.erb