demarches-normaliennes/app/views/layouts/navbars/_navbar_log_options.html.haml

16 lines
553 B
Text
Raw Normal View History

2016-12-01 10:54:25 +01:00
-if user_signed_in?
2017-02-28 14:26:54 +01:00
#sign_out.col-xs-2.no-padding
= render partial: 'users/login_banner'
= render partial: 'layouts/credentials'
2016-12-01 10:54:25 +01:00
-elsif gestionnaire_signed_in?
2017-02-28 14:26:54 +01:00
#sign_out.col-xs-2.no-padding
2016-12-01 10:54:25 +01:00
= render partial: 'gestionnaires/login_banner'
= render partial: 'layouts/credentials'
2016-12-01 10:54:25 +01:00
-elsif administrateur_signed_in?
2017-02-28 14:26:54 +01:00
#sign_out.col-xs-2.no-padding
2016-12-01 13:21:56 +01:00
= render partial: 'administrateurs/login_banner'
= render partial: 'layouts/credentials'
2016-12-01 10:54:25 +01:00
-else
2017-02-28 14:26:54 +01:00
#sign_in.col-xs-2
= link_to "Connexion", '/users/sign_in', :class => 'btn btn-lg'