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.                 |
  11.                 {# <a href="{{ path('fos_user_security_logout') }}">
  12.                                                     {{ 'layout.logout'|trans({}, 'FOSUserBundle') }}
  13.                                                 </a> #}
  14.                 {% else %}
  15.                 {# <a href="{{ path('fos_user_security_login') }}">{{ 'layout.login'|trans({}, 'FOSUserBundle') }}</a> #}
  16.             {% endif %}
  17.         </div>
  18.         {% if app.request.hasSession and app.request.hasPreviousSession %}
  19.             {% for type, messages in app.session.flashbag.all() %}
  20.                 {% for message in messages %}
  21.                     <div class="flash-{{ type }}">
  22.                         {{ message }}
  23.                     </div>
  24.                 {% endfor %}
  25.             {% endfor %}
  26.         {% endif %}
  27.         <div>
  28.             {% block fos_user_content %}{% endblock fos_user_content %}
  29.         </div>
  30.     </body>
  31. </html>