{% if adhoc_mode %} {% if role %}({{ role }}){% endif %} {% elif user.is_authenticated %} {{ user.username }}{% if role %} ({{ role }}){% endif %}