demarches-normaliennes/app/views/manager/application/_navigation.html.erb

29 lines
845 B
Text
Raw Normal View History

<%#
# 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", destroy_super_admin_session_path, method: :delete, class: "navigation__link" %>
<hr />
<% Administrate::Namespace.new(namespace).resources.each do |resource| %>
2018-05-31 15:18:06 +02:00
<%= link_to(
display_resource_name(resource),
[namespace, resource.path],
class: "navigation__link navigation__link--#{nav_link_state(resource)}"
) %>
<% end %>
<hr />
2018-07-23 11:01:56 +02:00
<%= link_to "Delayed Jobs", manager_delayed_job_path, class: "navigation__link" %>
2019-07-04 12:36:17 +02:00
<%= link_to "Features", manager_flipper_path, class: "navigation__link" %>
</nav>