{% if editable and item.are_contacts_editable and item.account.identity_set.count > 1%}
{% else %}
{% include "partials/contact_as_single_addr.html" with item=item.from_contact %}
{% endif %}
{% if item.in_reply_to.type > 0 %}
[{{ item.in_reply_to.get_type_display }}]
{% endif %}
{% if item.send_time and item.state == 3 %}
{{ item.send_time|date:"Y/m/d H:i:s +0000" }}
{% endif %}
{% if editable and item.are_contacts_editable %}
{% include "partials/contacts_editable.html" with contacts=item.to_contacts type="to" %}
{% include "partials/contacts_editable.html" with contacts=item.cc_contacts type="cc" %}
{% include "partials/contacts_editable.html" with contacts=item.bcc_contacts type="bcc" %}
{% else %}
{% include "partials/to_contacts.html" with to_contacts=item.to_contacts add_reply_all_link=item.can_switch_to_reply_all %}
{% include "partials/cc_contacts.html" with cc_contacts=item.cc_contacts %}
{% endif %}
{% if editable %}
{% if item.are_contacts_editable %}
Add CcAdd Bcc
{% endif %}
{% if not item.are_contacts_editable %}
Change contacts
{% endif %}
Edit
Subject
{% if item.are_contacts_editable %}
{% endif %}