mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
20 lines
686 B
Twig
20 lines
686 B
Twig
{% set configuration = app['conf'].get(['registry', 'custom-links']) %}
|
|
|
|
{% if app.getAuthenticator().isAuthenticated() %}
|
|
<div class="menu-bar-item">
|
|
{% if app.getAuthenticatedUser().isGuest %}
|
|
<span class="icomoon icon-agree"></span>
|
|
<span class="text">{{ 'Guest' | trans }}</span>
|
|
{% else %}
|
|
<a target="_blank" href="{{ path('account') }}"
|
|
title="{{ 'login:: Mon compte' | trans }}">
|
|
<span class="icomoon icon-agree"></span>
|
|
<span class="text">{{ app.getAuthenticatedUser().getDisplayName() }}</span>
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
|
|
|
|
{% endif %}
|
|
|