layout.html.twig 921B

123456789101112131415161718192021222324252627282930
  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 key, message in app.session.getFlashes() %}
  18. <div class="{{ key }}">
  19. {{ message|trans({}, 'FOSUserBundle') }}
  20. </div>
  21. {% endfor %}
  22. <div>
  23. {% block fos_user_content %}
  24. {% endblock fos_user_content %}
  25. </div>
  26. </body>
  27. </html>