demarches-normaliennes/app/views/layouts/_switch_devise_profile_module.html.haml
2017-04-10 17:55:54 +02:00

25 lines
847 B
Text

- if SwitchDeviseProfileService.new(warden).multiple_devise_profile_connect?
#switch_menu.dropdown.dropup
%button.btn.btn-default.dropdown-toggle{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false }
%i.fa.fa-toggle-on
%span.caret
%ul.dropdown-menu.dropdown-menu-left
- if user_signed_in?
%li
= link_to(users_dossiers_path, id: :menu_item_procedure) do
%i.fa.fa-user
 
Utilisateur
- if gestionnaire_signed_in?
%li
= link_to(backoffice_dossiers_path) do
%i.fa.fa-user
 
Accompagnateur
- if administrateur_signed_in?
%li
= link_to(admin_procedures_path) do
%i.fa.fa-user
 
Administrateur