2018-02-07 13:31:46 +01:00
|
|
|
<%#
|
|
|
|
# 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">
|
2020-11-05 15:09:11 +01:00
|
|
|
<%= link_to "Se déconnecter", destroy_super_admin_session_path, method: :delete, class: "navigation__link" %>
|
2018-02-07 13:31:46 +01:00
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
2022-09-09 14:48:40 +02:00
|
|
|
<% Administrate::Namespace.new(namespace).resources.select { |resource| !resource.to_s.in?(%w(confirmation_urls administrateur_confirmations)) }.each do |resource| %>
|
2018-05-31 15:18:06 +02:00
|
|
|
|
2018-02-07 13:31:46 +01:00
|
|
|
<%= link_to(
|
|
|
|
display_resource_name(resource),
|
2021-05-06 11:11:04 +02:00
|
|
|
resource_index_route(resource),
|
2018-02-07 13:31:46 +01:00
|
|
|
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" %>
|
2022-12-18 11:52:18 +01:00
|
|
|
<%= link_to "Import data via CSV", manager_import_procedure_tags_path, class: "navigation__link" %>
|
2022-05-02 17:30:37 +02:00
|
|
|
<% if Rails.application.secrets.sendinblue[:enabled] && ENV["SAML_IDP_ENABLED"] == "enabled" %>
|
2020-11-12 17:20:57 +01:00
|
|
|
<%= link_to "Sendinblue", ENV.fetch("SENDINBLUE_LOGIN_URL"), class: "navigation__link", target: '_blank' %>
|
|
|
|
<% end %>
|
2022-08-22 11:22:04 +02:00
|
|
|
<% if ENV.fetch("SAML_IDP_ENABLED") == "enabled" && ENV["DOLIST_LOGIN_URL"].present? %>
|
|
|
|
<%= link_to "Dolist", ENV.fetch("DOLIST_LOGIN_URL"), class: "navigation__link", target: '_blank' %>
|
|
|
|
<% end %>
|
2018-02-07 13:31:46 +01:00
|
|
|
</nav>
|