Adding layout for credentials, this dropdown is shown when you pass hover sign_out button. It display email informations about the current gestionnaire/user
This commit is contained in:
parent
09fc59d54b
commit
b698046e1e
7 changed files with 41 additions and 22 deletions
|
@ -1,10 +1,8 @@
|
|||
-if current_user.loged_in_with_france_connect?
|
||||
- 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"
|
||||
|
||||
= link_to "", '/users/sign_out', method: :delete, :class => 'btn fa fa-power-off off-fc-link'
|
||||
|
||||
-else
|
||||
= link_to "", '/users/sign_out', method: :delete, :class => 'btn btn-md fa fa-sign-out'
|
||||
|
||||
- else
|
||||
= link_to "", "/users/sign_out", method: :delete, class: "btn btn-md fa fa-sign-out"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue