{% load i18n %} {% if error %}
{{ error }}
{% elif results %} {% for result in results %}

{{ result.policy }} {% if result.result == 'permit' %}{% trans "Permit" %}{% else %}{% trans "Deny" %}{% endif %}

{% for step in result.steps %} {% endfor %}
{% trans "Policy" %} {% trans "Sequence" %} {% trans "Action" %} {% trans "Conditions" %} {% trans "Result" %}
{% if step.policy != result.policy %}{{ step.policy }}{% endif %} {% if step.entry.implicit %}{% trans "final" %}{% else %}{{ step.entry.sequence }}{% endif %} {{ step.entry.get_action_display }} {% for label, ok, detail in step.checks %}
{% if ok %}✓{% else %}✗{% endif %} {{ label }}{% if detail %}: {{ detail }}{% endif %}
{% empty %} {% trans "no conditions: matches every route" %} {% endfor %}
{% if step.matched %} {{ step.entry.get_action_display }} {% if step.entry.jump_policy %} → {{ step.entry.jump_policy }}{% endif %} {% for text in step.settings %}
set {{ text }}
{% endfor %} {% else %} {% trans "not met" %} {% endif %}
{% endfor %} {% endif %}