{% extends "django_pymissive/base_preview.html" %} {% load static i18n %} {% block preview_stylesheet %} {% endblock %} {% block preview_content %}

{% trans 'From' %}: {% if sender.name %}{{ sender.name }} {% endif %}<{{ sender.email }}>

{% if reply_to %}

{% trans 'Reply-To' %}: {% if reply_to.name %}{{ reply_to.name }} {% endif %}<{{ reply_to.email }}>

{% endif %}

{% trans 'To' %}: {% if to_recipients %} {% for r in to_recipients %}{% if not forloop.first %}, {% endif %}{% if r.name %}{{ r.name }} {% endif %}<{{ r.email }}>{% endfor %} {% else %} {% trans 'None' %} {% endif %}

{% if cc_recipients %}

{% trans 'Cc' %}: {% for r in cc_recipients %}{% if not forloop.first %}, {% endif %}{% if r.name %}{{ r.name }} {% endif %}<{{ r.email }}>{% endfor %}

{% endif %} {% if bcc_recipients %}

{% trans 'Bcc' %}: {% for r in bcc_recipients %}{% if not forloop.first %}, {% endif %}{% if r.name %}{{ r.name }} {% endif %}<{{ r.email }}>{% endfor %}

{% endif %} {% if missive.subject_compiled %}

{% trans 'Subject' %}: {{ missive.subject_compiled }}

{% endif %}
{% if missive.body_html_compiled %} {% endif %} {% if missive.body_text_compiled %} {% endif %} {% if not missive.body_html_compiled and not missive.body_text_compiled %}

{% trans 'No content' %}

{% endif %}
{% if missive.attachments_physical %}
{% for doc in missive.attachments_physical %} 📄 {{ doc.attachment_url.name|default:"unnamed" }} {% endfor %}
{% endif %}
{% endblock %}