{% extends "django_mail_preview/base.html" %} {% block title %}{{ parsed.subject|default:"(no subject)" }} ยท Mail Preview{% endblock %} {% block page %}message{% endblock %} {% block pane %}

{{ parsed.subject|default:"(no subject)" }}

{{ parsed.from_|default:"(no sender)" }}

{% if parsed.to %}to {{ parsed.to }}{% endif %} {% if parsed.cc %}cc {{ parsed.cc }}{% endif %} {% if bcc %}bcc {{ bcc|join:", " }}{% endif %} {% if parsed.reply_to %}reply-to {{ parsed.reply_to }}{% endif %}

{% if meta.tags %} {# A third line under the addresses; each tag opens the inbox filtered by it. #}

{% for tag in meta.tags %}{{ tag }}{% endfor %}

{% endif %}
{% if preview %} {{ preview.id }} {% else %} {% if meta.alias %}via {{ meta.alias }}{% endif %} {% endif %}
{% if meta %} {# The neighbours in the list, by id; j and k follow them. An end of the list is a dimmed icon without a link. #} {% if newer_url %} {% else %} {% endif %} {% if older_url %} {% else %} {% endif %} {% endif %} {% if delete_url %}
{% csrf_token %}
{% endif %}
{% if preview.description %}

{{ preview.description }}

{% endif %}
{% if parsed.html is not None %} {# The width controls need the script and only show once it has run; the link works without it. #} {% else %}

The message has no HTML part.

{% endif %}
{# Copy needs the script and shows once it has run. #}
{% if parsed.text is not None %}
{{ parsed.text }}
{% else %}

The message has no plain-text part.

{% endif %}
{# The source carries every attachment base64-encoded, so it is only on the page when asked for; the Source tab then navigates rather than switching in place. #} {% if tab == "source" %}
{{ parsed.source }}
{% endif %}
{% for name, value in parsed.headers %} {% endfor %}
{{ name }} {{ value }}
{% if parts %}

Parts {{ parts|length }}

{% endif %}
{% endblock pane %}