layout.html.twig 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. {% extends 'PackagistWebBundle::layout.html.twig' %}
  2. {% block content %}
  3. <div style="margin-bottom: 10px;">
  4. {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
  5. {{ 'layout.logged_in_as'|trans({'%username%': app.user.username}, 'FOSUserBundle') }} |
  6. <a href="{{ path('fos_user_security_logout') }}">
  7. {{ 'layout.logout'|trans({}, 'FOSUserBundle') }}
  8. </a>
  9. {% else %}
  10. <a href="{{ path('fos_user_security_login') }}">{{ 'layout.login'|trans({},
  11. 'FOSUserBundle') }}</a>
  12. {% endif %}
  13. </div>
  14. {% for key, flash in app.session.getFlashes() %}
  15. <div class="{{ flash }}" style="margin-bottom: 5px;">
  16. {{ key|trans({}, 'FOSUserBundle') }}
  17. </div>
  18. {% endfor %}
  19. <div>
  20. {% block fos_user_content %}{% endblock %}
  21. </div>
  22. <ul>
  23. <li><a href="{{ path('fos_user_registration_register') }}">Create a new account</a></li>
  24. <li><a href="{{ path('fos_user_profile_show') }}">See your profile</a></li>
  25. <li><a href="{{ path('fos_user_security_logout') }}">Log out</a></li>
  26. </ul>
  27. {% endblock %}