{% load load_helpdesk_settings %} {% with request|load_helpdesk_settings as helpdesk_settings %} {% if helpdesk_settings.HELPDESK_NAVIGATION_ENABLED and user.is_authenticated or user.is_staff %} {% if not query %}
{% csrf_token %}
{% endif %} {% else %} {% endif %} {% endwith %}