1 {% extends
"postorius/base.html" %}
6 {% trans 'List Index' %} - {{ block.super }}
11 <div class=
"page-header">
12 <h1>{% trans 'Mailing Lists' %}
</h1>
16 {% if user.is_authenticated %}
17 <div class=
"dropdown page-left col-md-4">
18 <button class=
"btn btn-outline-secondary dropdown-toggle" type=
"button" id=
"dropdownMenu1" data-toggle=
"dropdown" aria-haspopup=
"true" aria-expanded=
"true">
19 {% trans 'Filter by Role' %}
20 <span class=
"caret"></span>
22 <ul class=
"dropdown-menu" aria-labelledby=
"dropdownMenu1">
23 <li><a href=
"?role=owner" class=
"dropdown-item">{% trans 'Owner' %}
</a></li>
24 <li><a href=
"?role=moderator" class=
"dropdown-item">{% trans 'Moderator' %}
</a></li>
25 <li><a href=
"?role=member" class=
"dropdown-item">{% trans 'Member' %}
</a></li>
26 <li><a href=
"?role=nonmember" class=
"dropdown-item">{% trans 'Non-member' %}
</a></li>
27 <li><a href=
"?all-lists" class=
"dropdown-item">{% trans 'All' %}
</a></li>
30 <div class=
"col-md-4">
32 <h4>{% trans 'Role: ' %}
33 {% if role == 'owner' %} {% trans 'Owner' %}
34 {% elif role == 'moderator' %} {% trans 'Moderator' %}
35 {% elif role == 'member' %} {% trans 'Member' %}
36 {% elif role == 'nonmember' %} {% trans 'Non-member' %}
42 {% if user.is_superuser %}
43 <div class=
"col-md-4">
44 <p class=
"text-right">
45 {% if domain_count <
1 %}
46 <a class=
"btn btn-success" href=
"{% url 'domain_new' %}">{% trans 'Create New Domain' %}
</a>
48 <a class=
"btn btn-success" href=
"{% url 'list_new' %}">{% trans 'Create New List' %}
</a>
55 {% if lists|length
> 0 %}
56 <div class=
"table-responsive">
57 <table class=
"table table-bordered table-striped">
60 <th>{% trans 'List name' %}
</th>
61 <th>{% trans 'Post address' %}
</th>
62 <th>{% trans 'Description' %}
</th>
66 {% for list in lists %}
69 <a href=
"{% url 'list_summary' list_id=list.list_id %}">{{ list.display_name }}
</a>
70 {% if check_advertised %}
71 {% if user.is_superuser and not list.advertised %}
72 ({% trans 'unadvertised' %}*)
76 <td>{{ list.fqdn_listname }}
</td>
77 <td>{{ list.description }}
</td>
83 {% if not all_lists and not role %}
84 <small>* {% trans 'Only lists that you are owner, moderator or subscriber for are shown here. Click to
<a href=
"?all-lists"> see all lists
</a>.' %}
</small>
87 {% if user.is_superuser %}
88 <small>* {% trans 'Only admins see unadvertised lists in the list index.' %}
</small>
90 {% if not user.is_authenticated or
"all-lists" in request.GET %}
94 <p>{% trans 'There are currently no mailing lists.' %}
</p>
97 {% endblock content %}