{% load i18n core_tags messages_tags %}

{% trans 'Messages' %}

{% if member.is_comunication_responsible or request.user.is_election_voter %} {% trans 'New' context 'message' %} {% endif %}
{% if object_list %} {% for message in object_list %}
{% if message.is_read %} {% else %} {% endif %}
{{message.body}}
{% if not message.is_archived %} {% endif %} {% if member.is_comunication_responsible or request.user.is_election_voter%} {% endif %}
{% endfor %} {% block pagination %} {% pagination page_obj.paginator.num_pages page_obj.has_previous page_obj.has_next page_obj.number %} {% endblock pagination %} {% else %} {% trans ' No messages.' %} {% endif %}