{% load i18n %} {% comment %} This template provides a login / logout button for the top-right navigation for the hero / hero_keyvisual template. Please note that this template should be used via {% include "" %}, not {% extends "" %}! This way you can specify your own navigation or hero text or general content stuff. {% endcomment %} {% if user.is_authenticated %} {% trans "Logged in as" %} {{ user.username }}  {% trans "Log Out" %} {% else %} {% trans "Log In" %} {% endif %}