{% load i18n %} {% if user.is_authenticated %} ∏→ {% trans 'Logout' %} {{ user.username }} {% else %} ∏← {% trans 'Login' %} {% endif %}