2022-09-21 10:06:45 +02:00
|
|
|
%nav.fr-translate.fr-nav{ role: "navigation", "aria-label"=> t('menu_aria_label', scope: [:layouts]) }
|
2022-08-17 13:53:07 +02:00
|
|
|
.fr-nav__item
|
2022-09-21 11:06:19 +02:00
|
|
|
%button.account-btn.fr-translate__btn.fr-btn{ "aria-controls" => "account", "aria-expanded" => "false", :title => t('my_account', scope: [:layouts]) }
|
2022-08-17 13:53:07 +02:00
|
|
|
|
|
|
|
= " #{current_email}"
|
|
|
|
#account.fr-collapse.fr-menu
|
2023-07-13 10:38:15 +02:00
|
|
|
%ul.fr-menu__list.max-content
|
2022-08-17 13:53:07 +02:00
|
|
|
- if multiple_devise_profile_connect?
|
2023-07-12 16:50:28 +02:00
|
|
|
%li
|
|
|
|
= link_to "#", class: "fr-nav__link", "aria-current" => "true" do
|
2023-07-13 12:08:30 +02:00
|
|
|
= t('layouts.connected_as', profile: t("layouts.#{nav_bar_profile}"))
|
2023-07-12 16:50:28 +02:00
|
|
|
|
2022-08-17 13:53:07 +02:00
|
|
|
- if user_signed_in? && nav_bar_profile != :user
|
|
|
|
%li
|
2023-07-12 16:50:28 +02:00
|
|
|
= link_to dossiers_path, class: "fr-nav__link" do
|
2023-07-13 10:38:15 +02:00
|
|
|
%span.fr-icon-refresh-line.fr-icon--sm
|
2022-08-17 13:53:07 +02:00
|
|
|
= t('go_user', scope: [:layouts])
|
|
|
|
- if instructeur_signed_in? && nav_bar_profile != :instructeur
|
|
|
|
%li
|
2023-07-12 16:50:28 +02:00
|
|
|
= link_to instructeur_procedures_path, class: "fr-nav__link" do
|
2023-07-13 10:38:15 +02:00
|
|
|
%span.fr-icon-refresh-line.fr-icon--sm
|
2022-08-17 13:53:07 +02:00
|
|
|
= t('go_instructor', scope: [:layouts])
|
|
|
|
- if expert_signed_in? && nav_bar_profile != :expert
|
|
|
|
%li
|
2023-07-12 16:50:28 +02:00
|
|
|
= link_to expert_all_avis_path, class: "fr-nav__link" do
|
2023-07-13 10:38:15 +02:00
|
|
|
%span.fr-icon-refresh-line.fr-icon--sm
|
2022-08-17 13:53:07 +02:00
|
|
|
= t('go_expert', scope: [:layouts])
|
|
|
|
- if administrateur_signed_in? && nav_bar_profile != :administrateur
|
|
|
|
%li
|
2023-07-12 16:50:28 +02:00
|
|
|
= link_to admin_procedures_path, class: "fr-nav__link" do
|
2023-07-13 10:38:15 +02:00
|
|
|
%span.fr-icon-refresh-line.fr-icon--sm
|
2022-08-17 13:53:07 +02:00
|
|
|
= t('go_admin', scope: [:layouts])
|
2023-09-04 12:07:04 +02:00
|
|
|
- if gestionnaire_signed_in? && nav_bar_profile != :gestionnaire
|
2023-08-25 22:53:30 +02:00
|
|
|
%li
|
2023-09-04 12:07:04 +02:00
|
|
|
= link_to gestionnaire_groupe_gestionnaires_path, class: "fr-nav__link" do
|
2023-08-25 22:53:30 +02:00
|
|
|
%span.fr-icon-refresh-line.fr-icon--sm
|
2023-09-04 12:07:04 +02:00
|
|
|
= t('go_gestionnaire', scope: [:layouts])
|
2022-08-17 13:53:07 +02:00
|
|
|
|
2023-07-12 16:50:28 +02:00
|
|
|
- if super_admin_signed_in?
|
|
|
|
%li
|
|
|
|
= link_to manager_root_path, class: "fr-nav__link" do
|
2023-07-13 10:38:15 +02:00
|
|
|
%span.fr-icon-shield-line.fr-icon--sm
|
2023-07-12 16:50:28 +02:00
|
|
|
= t('go_superadmin', scope: [:layouts])
|
|
|
|
|
2019-03-28 11:33:45 +01:00
|
|
|
%li
|
2023-07-12 16:50:28 +02:00
|
|
|
= link_to profil_path, class: "fr-nav__link" do
|
2023-07-13 10:38:15 +02:00
|
|
|
%span.fr-icon-user-line.fr-icon--sm
|
2022-08-19 15:58:34 +02:00
|
|
|
= t('profile', scope: [:layouts])
|
2019-03-28 11:33:45 +01:00
|
|
|
%li
|
2023-07-12 16:50:28 +02:00
|
|
|
= link_to destroy_user_session_path, method: :delete, class: "fr-nav__link" do
|
2023-07-13 10:38:15 +02:00
|
|
|
%span.fr-icon-logout-box-r-line.fr-icon--sm
|
2022-08-19 15:58:34 +02:00
|
|
|
= t('logout', scope: [:layouts])
|