28 lines
887 B
Text
28 lines
887 B
Text
<%#
|
|
# 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">
|
|
<%= link_to "Se déconnecter", manager_sign_out_path, method: :delete, class: "navigation__link" %>
|
|
|
|
<hr />
|
|
|
|
<% Administrate::Namespace.new(namespace).resources.reject { |resource| resource.resource == 'dossiers'}.each do |resource| %>
|
|
|
|
<%= link_to(
|
|
display_resource_name(resource),
|
|
[namespace, resource.path],
|
|
class: "navigation__link navigation__link--#{nav_link_state(resource)}"
|
|
) %>
|
|
<% end %>
|
|
|
|
<hr />
|
|
|
|
<%= link_to "Delayed Job", manager_delayed_job_path, class: "navigation__link" %>
|
|
<%= link_to "Features", manager_flipflop_path, class: "navigation__link" %>
|
|
</nav>
|