2016-08-22 16:36:25 +02:00
|
|
|
%div.user
|
|
|
|
-if current_user.loged_in_with_france_connect?
|
|
|
|
%div{ id: "fconnect-profile", "data-fc-logout-url" => '/users/sign_out" data-method="delete' }
|
|
|
|
%a.text-info{ href: "#" }
|
|
|
|
= "#{current_user.given_name} #{current_user.family_name}"
|
|
|
|
|
|
|
|
= link_to "", '/users/sign_out', method: :delete, :class => 'btn fa fa-power-off off-fc-link'
|
|
|
|
|
|
|
|
-else
|
|
|
|
%i.fa.fa-user
|
|
|
|
= current_user.email
|
|
|
|
|
2016-11-21 17:30:28 +01:00
|
|
|
= link_to "Déconnexion", '/users/sign_out', method: :delete, :class => 'btn btn-md'
|