{% extends 'admin_panel/base.html' %}

{% import 'macros/form.html' as form %}

{% block breadcrumb_content %}
    <li>{% link_for _("Dashboard"), named_route='mailcraft.dashboard' %}</li>
    <li class="active">
        {% link_for "Mail #" ~ mail.id, named_route='mailcraft.mail_read', mail_id=mail.id %}
    </li>
{% endblock breadcrumb_content %}

{% block ap_content %}
    {% if mail.extras %}
        <div class="mailcraft-mail-meta">
            <h3>{{ _("Email meta") }}</h3>
            <ul>
                {% for key, value in mail.extras.items() %}
                    <li><b>{{ key }}</b>: {{ value }}</li>
                {% endfor %}
            </ul>
        </div>
    {% endif %}

    <div class="mailcraft-mail-body">
        <h3>{{ _("Email body") }}</h3>

        {{ mail.message | safe}}
    </div>
{% endblock ap_content %}
