{% extends postorius_base_template %} {% load url from future %} {% load i18n %} {% block main %} <div class="mm_subHeader"> <h1>{% trans "Mailing Lists" %}</h1> </div> {% if user.is_superuser %} <p> {% if domain_count < 2 %} <a class="btn btn-success" href="{% url 'domain_new' %}">{% trans "Create New Domain" %}</a> {% else %} <a class="btn btn-success" href="{% url 'list_new' %}">{% trans "Create New List" %}</a> {% endif %} </p> {% endif %} <table class="table table-bordered table-striped"> <thead> <tr> <th>{% trans 'List name' %}</th> <th>{% trans 'List address' %}</th> <th>{% trans 'Description' %}</th> </tr> </thead> <tbody> {% for list in lists %} <tr> <td> <a href="{% url 'list_summary' list_id=list.list_id %}">{{ list.display_name }}</a> </td> <td>{{ list.fqdn_listname }}</td> <td>{{ list.settings.description }}</td> </tr> {% endfor %} </tbody> </table> {% endblock main %}