2019-11-19 14:22:53 +01:00
|
|
|
.dropdown.header-menu-opener
|
2019-11-21 18:29:11 +01:00
|
|
|
%button.button.dropdown-button.header-menu-button{ title: "Mon compte" }
|
|
|
|
= image_tag "icons/account-circle.svg", alt: ''
|
2019-03-28 11:33:45 +01:00
|
|
|
%ul.header-menu.dropdown-content
|
|
|
|
%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: ''
|
2019-03-28 11:33:45 +01:00
|
|
|
Passer en super-admin
|
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: ''
|
2019-03-28 11:33:45 +01:00
|
|
|
Passer en usager
|
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: ''
|
2019-03-28 11:33:45 +01:00
|
|
|
Passer en instructeur
|
|
|
|
- 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: ''
|
2019-03-28 11:33:45 +01:00
|
|
|
Passer en administrateur
|
|
|
|
|
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: ''
|
2019-07-09 15:49:38 +02:00
|
|
|
Voir mon profil
|
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: ''
|
2019-03-28 11:33:45 +01:00
|
|
|
Se déconnecter
|