{% load i18n %} {% load mailarchive_extra %} {% load humanize %} {% if message.from in users_email_map %} {% with users_email_map|get:message.from as u %} {% userpic u %} {% endwith %} {% endif %} {% trans "From" %}: {% if message.from in users_email_map %} {{ users_email_map|get:message.from|staff_link }} {% else %} {{ message.from|email_link:message.from }} {% endif %}
{% trans "To" %}: {% for email in message.all_recipients %} {% if email in users_email_map %} {{ users_email_map|get:email|staff_link }}{% if not forloop.last %}, {% endif %} {% else %} {% if email in lists_email_map %} {% with lists_email_map|get:email as l %} {{ l.name }}{% if not forloop.last %}, {% endif %} {% endwith %} {% else %} {{ email|email_link }}{% if not forloop.last %}, {% endif %} {% endif %} {% endif %} {% endfor %}
{% trans "Subject" %}: {{ message.subject|escape }}
{{ message.received_date|naturalday:"SHORT_DATE_FORMAT" }} {{ message.received_date|date:"TIME_FORMAT" }}