diff --git a/src/postorius/templates/postorius/lists/held_messages.html b/src/postorius/templates/postorius/lists/held_messages.html index 3ce6fa8..924c052 100644 --- a/src/postorius/templates/postorius/lists/held_messages.html +++ b/src/postorius/templates/postorius/lists/held_messages.html @@ -1,88 +1,84 @@ {% extends postorius_base_template %} {% load url from future %} {% load i18n %} - -{% block subtitle %} -{% trans "Held Messages | " as page_title %}{{ page_title|add:list.fqdn_listname}} -{% endblock %} - {% load nav_helpers %} -{% block body_class %}list_summary{% endblock %} +{% block subtitle %} +{% trans 'Held Messages' %} | {{ list.fqdn_listname }} +{% endblock %} {% block main %} + {% list_nav 'list_held_messages' 'Held Messages' %} + {% if list.held|length > 0 %} +
+ {% if form.choices.errors %} + {% for error in form.choices.errors %} +
{{ error }}
+ {% endfor %} + {% endif %} + {% csrf_token %} + + + + + + + + + + + + + + + + + {% for msg in list.held %} + + + + + + - {% list_nav 'list_held_messages' "Held Messages" %} + + + {% endfor %} + +
{% trans 'Perform action on selected messages' %} + + + +
{% trans 'Subject' %}{% trans 'Sender' %}{% trans 'Reason' %}{% trans 'Hold Date' %}
{{ msg.subject }}{{ msg.sender }}{{ msg.reason }}{{ msg.hold_date }} + {% trans 'View' %} + {% trans 'Accept' %} + {% trans 'Reject' %} + {% trans 'Discard' %} - {% if list.held|length > 0 %} - - {% if form.choices.errors %} -
{{ form.choices.errors.0 }}
- {% endif %} - {% csrf_token %} - - - - - - - - - - - - - - - {% for msg in list.held %} - - - - - - - - - - {% endfor %} - -
{% trans 'Perform action on selected messages' %} - - - -
{% trans 'Subject' %}{% trans 'Sender' %}{% trans 'Reason' %}{% trans 'Hold Date' %}
{{ msg.subject }}{{ msg.sender }}{{ msg.reason }}{{ msg.hold_date }} - {% trans 'View' %} - {% trans 'Accept' %} - {% trans 'Reject' %} - {% trans 'Discard' %} - - -
- - {% else %} - -

{% trans 'There are currently no held messages.' %}

- - {% endif %} - + +
+ + {% else %} +

{% trans 'There are currently no held messages.' %}

+ {% endif %} {% endblock %} + {% block additionaljs %} -{% endblock %} \ No newline at end of file +{% endblock %}