fix: never show 'guest' profile name
it's just a hack to tell we don't known the actual profile
This commit is contained in:
parent
d566186954
commit
f6744adbde
1 changed files with 3 additions and 2 deletions
|
@ -5,8 +5,9 @@
|
||||||
- if dossier.present? && dossier&.france_connected_with_one_identity?
|
- if dossier.present? && dossier&.france_connected_with_one_identity?
|
||||||
%span
|
%span
|
||||||
via FranceConnect
|
via FranceConnect
|
||||||
%span{ class: "fr-badge fr-badge--sm #{color_by_role(nav_bar_profile)}" }
|
- if nav_bar_profile != :guest # don't confuse user with unknown profile
|
||||||
= t("layouts.#{nav_bar_profile}")
|
%span{ class: "fr-badge fr-badge--sm #{color_by_role(nav_bar_profile)}" }
|
||||||
|
= t("layouts.#{nav_bar_profile}")
|
||||||
#account.fr-collapse.fr-menu
|
#account.fr-collapse.fr-menu
|
||||||
%ul.fr-menu__list.max-content
|
%ul.fr-menu__list.max-content
|
||||||
- if multiple_devise_profile_connect?
|
- if multiple_devise_profile_connect?
|
||||||
|
|
Loading…
Reference in a new issue