{% load i18n %} {% load rest_framework %} {% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %} {% if user.is_authenticated %} {% endif %} {% if user.is_active and user.is_staff %} {% endif %} {% if user.is_authenticated %} {% block profile_link %}
  • {{user.username}}
  • {% endblock %}
  • Close
  • Logout
  • {% else %} {% endif %}