vendor/friendsofsymfony/user-bundle/Resources/views/layout.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8" />
  5.     </head>
  6.     <body>
  7.         <div>
  8.             {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
  9.                 {{ 'layout.logged_in_as'|trans({'%username%': app.user.username}, 'FOSUserBundle') }} |
  10.                 <a href="{{ path('fos_user_security_logout') }}">
  11.                     {{ 'layout.logout'|trans({}, 'FOSUserBundle') }}
  12.                 </a>
  13.             {% else %}
  14.                 <a href="{{ path('fos_user_security_login') }}">{{ 'layout.login'|trans({}, 'FOSUserBundle') }}</a>
  15.             {% endif %}
  16.         </div>
  17.         {% if app.request.hasSession and app.request.hasPreviousSession %}
  18.             {% for type, messages in app.session.flashbag.all() %}
  19.                 {% for message in messages %}
  20.                     <div class="flash-{{ type }}">
  21.                         {{ message }}
  22.                     </div>
  23.                 {% endfor %}
  24.             {% endfor %}
  25.         {% endif %}
  26.         <div>
  27.             {% block fos_user_content %}
  28.             {% endblock fos_user_content %}
  29.         </div>
  30.     </body>
  31. </html>