{% load i18n %} {% load staticfiles %} {% load rest_framework %} {% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %} {% if user.is_authenticated %}
  • {% trans 'API' %}
  • {% endif %} {% if user.is_active and user.is_staff %} {% endif %} {% if user.is_authenticated %}
  • {{user.username}}
  • Logout
  • {% else %}
  • Login
  • {% endif %}