Sha256: 357772f557975d4c5a29adbd62b775ea0a8b8f66a94d523f2cc53aae58b8d8a9

Contents?: true

Size: 539 Bytes

Versions: 9

Compression:

Stored size: 539 Bytes

Contents

<%#
# Sidebar

This partial is used to display the sidebar in Administrate.
By default, the sidebar contains navigation links
for all resources in the admin dashboard,
as defined by the routes in the `admin/` namespace
%>

<ul class="sidebar__list">
  <% Administrate::Namespace.new(namespace).resources.each do |resource| %>
    <li>
      <%= link_to(
        display_resource_name(resource),
        [namespace, resource],
        class: "sidebar__link sidebar__link--#{nav_link_state(resource)}"
      ) %>
    </li>
  <% end %>
</ul>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
administrate-0.5.0 app/views/administrate/application/_sidebar.html.erb
administrate-0.4.0 app/views/administrate/application/_sidebar.html.erb
administrate-0.3.0 app/views/administrate/application/_sidebar.html.erb
administrate-0.2.2 app/views/administrate/application/_sidebar.html.erb
administrate-0.2.1 app/views/administrate/application/_sidebar.html.erb
administrate-0.2.0 app/views/administrate/application/_sidebar.html.erb
administrate-0.2.0.rc1 app/views/administrate/application/_sidebar.html.erb
administrate-0.1.5 app/views/administrate/application/_sidebar.html.erb
administrate-0.1.4 app/views/administrate/application/_sidebar.html.erb