{% extends "outreach/admin/base.html" %} {% load i18n admin_urls %} {% block title %}{{ original.subject }} | {{ site_name }}{% endblock %} {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} mailing-detail{% endblock %} {% block head %} {% url opts|admin_urlname:'changelist' as changelist_url %}

{% trans "Mailing" %}

{{ original.subject }}

{% blocktrans with sender=original.sender sent_at=original.created_at|date:"DATETIME_FORMAT" %}Sent by {{ sender }} on {{ sent_at }}.{% endblocktrans %}

{% trans "Mailings" %} {% if has_delete_permission %} {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %} {% trans "Delete" %} {% endif %}
{% endblock %} {% block content %}
{{ original.sent_count }}{% trans "Sent" context "tile" %}
{{ original.failed_count }}{% trans "Failed" context "tile" %}
{{ original.skipped_count }}{% trans "Skipped" context "tile" %}
{% trans "Message as written, variables not yet filled in" %}
{{ original.subject }}

{% trans "Recipients" %}

{% if recipients %}
    {% for event in recipients %}
  • {{ event.prospect.display_name }} {% if event.kind == "mail_failed" and event.detail %}
    {{ event.detail }}{% endif %}
    {% if event.kind == "mail_failed" %}{% trans "failed" context "recipient" %}{% else %}{% trans "sent" context "recipient" %}{% endif %}
  • {% endfor %}
{% else %}

{% trans "No recipient is kept for this mailing." %}

{% endif %}

{% trans "Open a prospect to see every mailing that reached them." %}

{% if skipped_reasons %}

{% trans "Skipped" context "tile" %}

    {% for reason, count in skipped_reasons.items %} {% if count %}
  • {% if reason == "unsubscribed" %}{% trans "Unsubscribed" %}{% elif reason == "suppressed" %}{% trans "Suppressed" %}{% elif reason == "cooldown" %}{% trans "Contacted recently" %}{% elif reason == "over_limit" %}{% trans "Over the send limit" %}{% else %}{{ reason }}{% endif %} {{ count }}
  • {% endif %} {% endfor %}

{% trans "Skipped people are counted, never named, so an erasure request leaves nothing behind." %}

{% endif %}
{% endblock %}