56 lines
2.7 KiB
Text
56 lines
2.7 KiB
Text
%nav.fr-translate.fr-nav{ role: "navigation", "aria-label"=> t('my_account', scope: [:layouts]) }
|
|
.fr-nav__item
|
|
%button.account-btn.fr-translate__btn.fr-btn{ "aria-controls" => "account", "aria-expanded" => "false", :title => t('my_account', scope: [:layouts]) }
|
|
%span.fr-mr-1w= current_email
|
|
- if dossier.present? && dossier&.france_connected_with_one_identity?
|
|
%span
|
|
via FranceConnect
|
|
%span{ class: "fr-badge fr-badge--sm #{color_by_role(nav_bar_profile)}" }
|
|
= t("layouts.#{nav_bar_profile}")
|
|
#account.fr-collapse.fr-menu
|
|
%ul.fr-menu__list.max-content
|
|
- if multiple_devise_profile_connect?
|
|
%li
|
|
= link_to "#", class: "fr-nav__link", "aria-current" => "true" do
|
|
= t('layouts.connected_as', profile: t("layouts.#{nav_bar_profile}"))
|
|
|
|
- if user_signed_in? && nav_bar_profile != :user
|
|
%li
|
|
= link_to dossiers_path, class: "fr-nav__link" do
|
|
%span.fr-icon-refresh-line.fr-icon--sm
|
|
= t('go_user', scope: [:layouts])
|
|
- if instructeur_signed_in? && nav_bar_profile != :instructeur
|
|
%li
|
|
= link_to instructeur_procedures_path, class: "fr-nav__link" do
|
|
%span.fr-icon-refresh-line.fr-icon--sm
|
|
= t('go_instructor', scope: [:layouts])
|
|
- if expert_signed_in? && nav_bar_profile != :expert
|
|
%li
|
|
= link_to expert_all_avis_path, class: "fr-nav__link" do
|
|
%span.fr-icon-refresh-line.fr-icon--sm
|
|
= t('go_expert', scope: [:layouts])
|
|
- if administrateur_signed_in? && nav_bar_profile != :administrateur
|
|
%li
|
|
= link_to admin_procedures_path, class: "fr-nav__link" do
|
|
%span.fr-icon-refresh-line.fr-icon--sm
|
|
= t('go_admin', scope: [:layouts])
|
|
- if gestionnaire_signed_in? && nav_bar_profile != :gestionnaire
|
|
%li
|
|
= link_to gestionnaire_groupe_gestionnaires_path, class: "fr-nav__link" do
|
|
%span.fr-icon-refresh-line.fr-icon--sm
|
|
= t('go_gestionnaire', scope: [:layouts])
|
|
|
|
- if super_admin_signed_in? && nav_bar_profile != :superadmin
|
|
%li
|
|
= link_to manager_root_path, class: "fr-nav__link" do
|
|
%span.fr-icon-shield-line.fr-icon--sm
|
|
= t('go_superadmin', scope: [:layouts])
|
|
|
|
%li
|
|
= link_to profil_path, class: "fr-nav__link" do
|
|
%span.fr-icon-user-line.fr-icon--sm
|
|
= t('profile', scope: [:layouts])
|
|
%li
|
|
= link_to destroy_user_session_path, method: :delete, class: "fr-nav__link" do
|
|
%span.fr-icon-logout-box-r-line.fr-icon--sm
|
|
= t('logout', scope: [:layouts])
|