2019-11-19 14:22:53 +01:00
|
|
|
.dropdown.header-menu-opener
|
2020-09-08 18:32:06 +02:00
|
|
|
%button.button.dropdown-button.icon-only.header-menu-button{ title: "Mon compte", 'aria-expanded' => 'false', 'aria-controls' => 'mon_compte_menu' }
|
2020-03-05 16:06:29 +01:00
|
|
|
.hidden Mon compte
|
2020-09-14 09:53:37 +02:00
|
|
|
= image_tag "icons/account-circle.svg", alt: 'Mon compte'
|
2020-09-08 18:32:06 +02:00
|
|
|
%ul.header-menu.dropdown-content#mon_compte_menu
|
2019-03-28 11:33:45 +01:00
|
|
|
%li
|
|
|
|
.menu-item{ title: current_email }
|
|
|
|
= current_email
|
|
|
|
- if administration_signed_in?
|
|
|
|
%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])
|
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])
|