source/View/Templates/Components/_userProfileReference.html.twig line 1

Open in your IDE?
  1. {% if app.environment != "test" %}
  2.     <div class="flex items-center justify-end h-full ml-auto">
  3.         {% if app.user %}
  4.             <a href="{{ path("Security-logout") }}"
  5.                class="flex items-center flex-shrink-0 h-full px-3 pt-1 ml-6 text-base border-b-4 border-transparent ring-inset hover:border-zpid-blue"
  6.                title="{{ 'link.user.logout'|trans({'#userEmail#':app.user.email}) }}">
  7.                 {# Icon: ri:logout-circle-r-line #}
  8.                 <svg class="mr-1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
  9.                      aria-hidden="true" role="img" style="vertical-align: -0.125em;" width="1em" height="1em"
  10.                      preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  11.                     <path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2a9.985 9.985 0 0 1 8 4h-2.71a8 8 0 1 0 .001 12h2.71A9.985 9.985 0 0 1 12 22zm7-6v-3h-8v-2h8V8l5 4l-5 4z"
  12.                           fill="currentColor"/>
  13.                 </svg>
  14.                 {{ "link.user.logout-short"|trans }}
  15.             </a>
  16.         {% else %}
  17.             <a href="{{ path("Security-login") }}"
  18.                class="flex items-center flex-shrink-0 h-full px-3 pt-1 text-base border-b-4 border-transparent ring-inset hover:border-zpid-blue">
  19.                 {# Icon: ri:login-circle-line #}
  20.                 <svg class="mr-1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
  21.                      aria-hidden="true" role="img" style="vertical-align: -0.125em;" width="1em" height="1em"
  22.                      preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
  23.                     <path d="M10 11V8l5 4l-5 4v-3H1v-2h9zm-7.542 4h2.124A8.003 8.003 0 0 0 20 12A8 8 0 0 0 4.582 9H2.458C3.732 4.943 7.522 2 12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10c-4.478 0-8.268-2.943-9.542-7z"
  24.                           fill="currentColor"/>
  25.                 </svg>
  26.                 {{ "link.user.login"|trans }}
  27.             </a>
  28.         {% endif %}
  29.     </div>
  30. {% endif %}