{% load i18n aa_ticket %} {% with d=row.department %}
{{ d.name }} {% if not d.is_active %}{% translate "inactive" context 'aa_ticket' %}{% endif %} {% if row.parent_note %}· {{ row.parent_note }}{% endif %} {% if not d.accepts_submissions %}{% translate "no player tickets" context 'aa_ticket' %}{% endif %}
{% translate "Staff groups" context 'aa_ticket' %}: {% for g in d.groups.all %}{{ g.name }}{% if not forloop.last %}, {% endif %}{% empty %} {% translate "none — nobody can handle tickets here" context 'aa_ticket' %}{% endfor %}
{% for g in row.joinable %}
{% if g.auto %}{% blocktranslate context 'aa_ticket' with group=g.name %}{{ group }}: Alliance Auth fills this group automatically with a whole corporation or alliance — they could all read all tickets of this department.{% endblocktranslate %}{% else %}{% blocktranslate context 'aa_ticket' with group=g.name %}{{ group }}: anyone can join or request this group — they could read all tickets of this department.{% endblocktranslate %}{% endif %}
{% endfor %} {% if row.nobody_can_submit %}
{% translate "Submissions are limited to states or groups that no longer exist — nobody can submit tickets here. Pick new ones, or tick “Let everyone submit again” on the department page." context 'aa_ticket' %}
{% endif %} {% if not d.webhook_url %}
{% translate "Discord channel not configured — new tickets will not be announced." context 'aa_ticket' %}
{% elif d.last_webhook_error %}
{% blocktranslate context 'aa_ticket' with when=d.last_webhook_error_at|eve_time reason=d.last_webhook_error %}Last delivery failed ({{ when }}: {{ reason }}){% endblocktranslate %}
{% endif %}
{% csrf_token %}
{% endwith %}