<!--
SPDX-FileCopyrightText: 2024-present Tobias Kunze
SPDX-License-Identifier: AGPL-3.0-only WITH LicenseRef-Pretalx-AGPL-3.0-Terms
-->

{% load i18n %}
{% if template.role == "submission.state.accepted" %}
    <span class="badge color-success">{% translate "Accept email" %}</span>
{% elif template.role == "submission.state.rejected" %}
    <span class="badge color-danger">{% translate "Reject email" %}</span>
{% elif template.role == "schedule.new" %}
    <span class="badge color-info">{% translate "Schedule update" %}</span>
{% elif template.role == "question.reminder" %}
    <span class="badge color-warning">{% translate "Custom fields reminder" %}</span>
{% elif template.role %}
    <span class="badge color-info">{{ template.get_role_display }}</span>
{% elif show_custom %}
    <span class="badge color-secondary">{% translate "Custom Mail" %}</span>
{% endif %}
