{% extends "postorius/base.html" %} {% load i18n %} {% load pagination %} {% load nav_helpers %} {% block head_title %} {% trans 'List Index' %} - {{ block.super }} {% endblock %} {% block content %}
{% if user.is_authenticated %}
{% trans 'Role: ' %}
{% endif %} {% if user.is_superuser %}
{% comment %} The span below exists only because d-flex will strech the child elements completely. So, we wrap them in span so that the width the span increases but the button remains original height. {% endcomment %} {% if domain_count < 1 %} {% trans 'Create New Domain' %} {% else %} {% trans 'Create New List' %} {% endif %}
{% endif %}
{% if lists|length > 0 %}
{% if user.is_superuser or role == 'moderator' or role == 'owner' %} {% endif %} {% for list in lists %} {% if user.is_superuser or role == 'moderator' or role == 'owner' %} {% endif %} {% endfor %}
{% trans 'List name' %} {% trans 'Post address' %} {% trans 'Description' %}{% trans 'Members' %} {% trans 'Held messages' %} {% trans 'Subscription requests' %}
{{ list.display_name }} {% if check_advertised %} {% if user.is_superuser and not list.advertised %} {% endif %} {% endif %} {{ list.fqdn_listname }} {{ list.description }} {{ list.member_count }} {% if list|held_count > 0 %} {{ list|held_count }} {% else %} - {% endif %} {% if list|pending_subscriptions_count > 0 or list|pending_unsubscriptions_count > 0 %} {% if list|pending_subscriptions_count > 0 %} {{ list|pending_subscriptions_count }} {% endif %} {% if list|pending_unsubscriptions_count > 0 %} {{ list|pending_unsubscriptions_count }} {% endif %} {% else %} - {% endif %}
{% if not all_lists and not role %} * {% trans 'Only lists that you are owner, moderator or subscriber for are shown here. Click to see all lists.' %}
{% endif %} {% if user.is_superuser %} {% trans 'Only admins see unadvertised lists in the list index.' %} {% endif %} {% if not user.is_authenticated or "all-lists" in request.GET %} {% paginator lists %} {% endif %} {% else %}

{% trans 'There are currently no mailing lists.' %}

{% endif %} {% endblock content %}