{% comment %}
SPDX-FileCopyrightText: 2017-present Tobias Kunze
SPDX-License-Identifier: AGPL-3.0-only WITH LicenseRef-Pretalx-AGPL-3.0-Terms
This file contains Apache-2.0 licensed contributions copyrighted by the following contributors:
SPDX-FileContributor: Raphael Michel
{% endcomment %}
{% load i18n %}
{% partialdef state_inner %}
{% if state == "submitted" %}
{{ phrases.submission.submitted }}
{% elif state == "review" %}
{{ phrases.submission.in_review }}
{% elif state == "rejected" %}
{{ phrases.submission.not_accepted }}
{% elif state == "accepted" %}
{% translate "accepted" %}
{% elif state == "confirmed" %}
{% translate "confirmed" %}
{% elif state == "canceled" %}
{% translate "Cancelled" as cancelled_label %}{{ cancelled_label|lower }}
{% elif state == "withdrawn" %}
{% translate "withdrawn" %}
{% endif %}
{% endpartialdef %}
{% if as_badge %}
{% partial state_inner %}
{% else %}
{% partial state_inner %}
{% endif %}