layout.html.twig 1015 B

12345678910111213141516171819202122232425262728293031
  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. {% for type, messages in app.session.flashBag.all %}
  18. {% for message in messages %}
  19. <div class="{{ type }}">
  20. {{ message|trans({}, 'FOSUserBundle') }}
  21. </div>
  22. {% endfor %}
  23. {% endfor %}
  24. <div>
  25. {% block fos_user_content %}
  26. {% endblock fos_user_content %}
  27. </div>
  28. </body>
  29. </html>