Skip to content
Snippets Groups Projects
Commit 21e09dae authored by Fabrice Gangler's avatar Fabrice Gangler :art:
Browse files

feat(user): display login/logtout links

parent d3c1a4e0
No related branches found
No related tags found
1 merge request!29Feat user login change password forgot password
......@@ -20,6 +20,29 @@
<div class="col-lg-8 mx-auto p-4 py-md-5">
<header class="d-flex align-items-center pb-3 mb-5 border-bottom">
HEADER
<nav>
<ul class="icon-list ps-0">
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<li class="d-flex align-items-start mb-1 text-muted">
<a href="{{ path('app_user_profile') }}">
{{ 'user.link.profile'|trans }}
/ <strong class="connected_user_email">{{ app.user.email }}</strong> </a>
</li>
<li class="d-flex align-items-start mb-1">
<a href="{{ path('app_account_logout') }}">{{ 'user.link.logtout'|trans }}</a>
</li>
{% else %}
<li class="d-flex align-items-start mb-1">
<a href="{{ path('app_account_login') }}">
{{ 'public.link.login'|trans }}
</a>
</li>
{# <li class="d-flex align-items-start mb-1">#}
{# <a href="{{ path('app_user_create-account') }}">Create an account</a>#}
{# </li>#}
{% endif %}
</ul>
</nav>
</header>
<main>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment