2022-05-11 16:08:48 +02:00
|
|
|
.dropdown.header-menu-opener{ data: { controller: 'menu-button' } }
|
|
|
|
%button.button.dropdown-button.icon-only.header-menu-button{ title: "Mon compte", data: { menu_button_target: 'button' } }
|
2020-03-05 16:06:29 +01:00
|
|
|
.hidden Mon compte
|
2021-04-23 21:16:56 +02:00
|
|
|
= image_tag "icons/account-circle.svg", alt: 'Mon compte', width: 24, height: 24, loading: 'lazy'
|
2022-05-11 16:08:48 +02:00
|
|
|
%ul.header-menu.dropdown-content#mon_compte_menu{ data: { menu_button_target: 'menu' } }
|
2019-03-28 11:33:45 +01:00
|
|
|
%li
|
|
|
|
.menu-item{ title: current_email }
|
|
|
|
= current_email
|
2020-11-05 15:09:11 +01:00
|
|
|
- if super_admin_signed_in?
|
2019-03-28 11:33:45 +01:00
|
|
|
%li
|
|
|
|
= link_to manager_root_path, class: "menu-item menu-link" do
|
2019-11-19 14:41:41 +01:00
|
|
|
= image_tag "icons/super-admin.svg", alt: ''
|
2020-08-25 15:01:54 +02:00
|
|
|
= t('go_superadmin', scope: [:layouts])
|
2019-08-08 17:44:33 +02:00
|
|
|
- if multiple_devise_profile_connect?
|
2019-03-28 11:33:45 +01:00
|
|
|
- if user_signed_in? && nav_bar_profile != :user
|
|
|
|
%li
|
|
|
|
= link_to dossiers_path, class: "menu-item menu-link" do
|
2019-11-19 14:41:41 +01:00
|
|
|
= image_tag "icons/switch-profile.svg", alt: ''
|
2020-08-25 15:01:54 +02:00
|
|
|
= t('go_user', scope: [:layouts])
|
2019-08-06 11:02:54 +02:00
|
|
|
- if instructeur_signed_in? && nav_bar_profile != :instructeur
|
2019-03-28 11:33:45 +01:00
|
|
|
%li
|
2019-08-06 11:02:54 +02:00
|
|
|
= link_to instructeur_procedures_path, class: "menu-item menu-link" do
|
2019-11-19 14:41:41 +01:00
|
|
|
= image_tag "icons/switch-profile.svg", alt: ''
|
2020-08-25 15:01:54 +02:00
|
|
|
= t('go_instructor', scope: [:layouts])
|
2021-02-09 10:24:13 +01:00
|
|
|
- if expert_signed_in? && nav_bar_profile != :expert
|
|
|
|
%li
|
|
|
|
= link_to expert_all_avis_path, class: "menu-item menu-link" do
|
|
|
|
= image_tag "icons/switch-profile.svg", alt: ''
|
|
|
|
= t('go_expert', scope: [:layouts])
|
2019-03-28 11:33:45 +01:00
|
|
|
- if administrateur_signed_in? && nav_bar_profile != :administrateur
|
|
|
|
%li
|
|
|
|
= link_to admin_procedures_path, class: "menu-item menu-link" do
|
2019-11-19 14:41:41 +01:00
|
|
|
= image_tag "icons/switch-profile.svg", alt: ''
|
2020-08-25 15:01:54 +02:00
|
|
|
= t('go_admin', scope: [:layouts])
|
2019-03-28 11:33:45 +01:00
|
|
|
|
2019-07-09 15:49:38 +02:00
|
|
|
%li
|
|
|
|
= link_to profil_path, class: "menu-item menu-link" do
|
2019-11-19 14:41:41 +01:00
|
|
|
= image_tag "icons/switch-profile.svg", alt: ''
|
2020-08-25 15:01:54 +02:00
|
|
|
= t('profile', scope: [:layouts])
|
2019-03-28 11:33:45 +01:00
|
|
|
%li
|
|
|
|
= link_to destroy_user_session_path, method: :delete, class: "menu-item menu-link" do
|
2019-11-19 14:41:41 +01:00
|
|
|
= image_tag "icons/sign-out.svg", alt: ''
|
2020-08-25 15:01:54 +02:00
|
|
|
= t('logout', scope: [:layouts])
|