{% load i18n static admin_black %} {% if user.is_active and user.is_staff or has_permission %} {% endif %}