{% load i18n %} {% if request.user.is_authenticated %} {% trans "Log out" %} {% trans "Logged in as: " %}{{ request.user.username }} {% else %} {% trans "Log in or sign up" %} {% trans "Not logged in" %} {% endif %}