{% extends "postman/base.html" %} {% load i18n postman_tags allauth df_site pagination_tags django_bootstrap5 %}{% comment %} WARNING: 'pagination_tags' is a name from the dj-pagination application. For convenience, the design of this template is done with the use of that application. Django-postman will still be working, even if that application is not installed, by providing a mock for the template tag library. If the real implementation is to be used, just make sure that 'dj_pagination' is declared before 'postman' in the INSTALLED_APPS setting. {% endcomment %} {% block content %}

{% block pm_folder_title %}{% endblock %}

{% if invalid_page %}

{% trans "Sorry, this page number is invalid." %}

{% else %} {% if pm_messages %} {% block pm_by_modes %} {% endblock pm_by_modes %}
{% csrf_token %} {% block pm_form_buttons %}
{% block pm_delete_button %}{% endblock %} {% block pm_archive_button %}{% endblock %} {% block pm_undelete_button %}{% endblock %} {% block pm_read_button %}{% endblock %} {% block pm_unread_button %}{% endblock %}
{% endblock %} {% block pm_sender_header %} {% endblock %} {% block pm_recipient_header %} {% endblock %} {% paginate_qs pm_messages per_page=10 as pm_messages_p %} {% for message in pm_messages_p %} {% block pm_sender_cell %} {% endblock %} {% block pm_recipient_cell %} {% endblock %} {% endfor %}
{% trans "Action" %}{% trans "Sender" %} {% fa6_icon 'sort' %}{% trans "Recipient" %} {% fa6_icon 'sort' %}{% trans "Subject" %} {% fa6_icon 'sort' %} {% block pm_date %}{% trans "Date" %}{% endblock %} {% fa6_icon 'sort' %}
{{ message.obfuscated_sender|or_me:user }}{% if message.count %} ({{ message.count }}){% endif %}{{ message.obfuscated_recipient|or_me:user }}{% if message.count %} ({{ message.count }}){% endif %}{% if message.is_new %}{% endif %}{% if message.is_replied %}{% endif %} {% block pm_subject %} {% include "postman/inc_subject_ex.html" %} {% if message.body %}
{{ message.body|truncatewords_html:7|safe }}
{% endif %} {% endblock %} {% if message.is_replied %}
{% endif %}{% if message.is_new %}
{% endif %}
{{ message.sent_at|compact_date:_("g:i A,M j,n/j/y") }}
{% bootstrap_pagination pm_messages_p size='sm' justify_content='center' %}
{% else %} {% element p %} {% trans "No messages." %} {% endelement %} {% endif %} {% endif %} {% block pm_footer_info %}{% endblock %}
{% endblock content %}