{% load i18n %}
{% load bootstrap3 %}
{# Changes should be replicated in pretixpresale/event/fragment_order_status.html and in pretix/base/models/orders.py #}
{% if order.status == "n" %}
{% if order.require_approval %}
{% trans "Approval pending" %}
{% elif order.valid_if_pending %}
{% trans "Pending (confirmed)" context "order state" %}
{% else %}
{% trans "Pending" %}
{% endif %}
{% elif order.status == "p" %}
{% if order.count_positions == 0 %}
{% trans "Canceled (paid fee)" %}
{% else %}
{% trans "Paid" %}
{% endif %}
{% elif order.status == "e" %} {# expired #}
{% trans "Expired" %}
{% elif order.status == "c" %}
{% trans "Canceled" %}
{% endif %}