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

17 lines
612 B
Text
Raw Normal View History

2016-12-01 10:54:25 +01:00
-#%span.fa.fa-sign-out
-if user_signed_in?
.col-lg-1.col-md-1#sign_out.no-padding
= render partial: 'users/login_banner'
= render partial: 'layouts/credentials'
2016-12-01 10:54:25 +01:00
-elsif gestionnaire_signed_in?
2016-12-01 12:37:56 +01:00
.col-lg-1.col-md-1#sign_out.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?
2016-12-01 13:21:56 +01:00
.col-lg-1.col-md-1#sign_out.no-padding
= render partial: 'administrateurs/login_banner'
= render partial: 'layouts/credentials'
2016-12-01 10:54:25 +01:00
-else
.col-lg-1.col-md-1#sign_in
2016-12-16 14:40:41 +01:00
= link_to "Connexion", '/users/sign_in', :class => 'btn btn-lg'