• {{ 'Tag cloud'|trans }}
  • {{ 'Site map'|trans }}
  • {# TODO: add logic for basket link visibility #} {% if false %}
  • {{ 'Shopping basket'|trans }}
  • {% endif %} {# Using IS_AUTHENTICATED_REMEMBERED to check if user is logged in as he can come back from another session, with "remember me" token. #} {# IS_AUTHENTICATED_FULLY inherits from IS_AUTHENTICATED_REMEMBERED, so a fully authenticated user will also have this role. #} {% if is_granted( 'IS_AUTHENTICATED_REMEMBERED' ) %}
  • {{ 'My profile'|trans }}
  • {{ 'Logout'|trans }} ( {{ app.user.username }} )
  • {% else %} {# TODO: add check if user registration is enabled #} {% if true %}
  • {{ 'Register'|trans }}
  • {% endif %}
  • {{ 'Login'|trans }} {{ 'Login'|trans }}
    {{ 'Forgot your password?'|trans }}
  • {% endif %}