|
|
@ -12,40 +12,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% block content %}
|
|
|
|
{% call macros.table() %}
|
|
|
|
{% call macros.table() %}
|
|
|
|
<tr>
|
|
|
|
<thead>
|
|
|
|
<th>{% trans %}Actions{% endtrans %}</th>
|
|
|
|
<tr>
|
|
|
|
<th>{% trans %}Manage{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Actions{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Domain name{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Manage{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Mailbox count{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Domain name{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Alias count{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Mailbox count{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Comment{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Alias count{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Created{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Comment{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Last edit{% endtrans %}</th>
|
|
|
|
<th>{% trans %}Created{% endtrans %}</th>
|
|
|
|
</tr>
|
|
|
|
<th>{% trans %}Last edit{% endtrans %}</th>
|
|
|
|
{% for domain in current_user.get_managed_domains() %}
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
</thead>
|
|
|
|
<td>
|
|
|
|
<tbody>
|
|
|
|
<a href="{{ url_for('.domain_details', domain_name=domain.name) }}" title="{% trans %}Details{% endtrans %}"><i class="fa fa-list"></i></a>
|
|
|
|
{% for domain in current_user.get_managed_domains() %}
|
|
|
|
{% if current_user.global_admin %}
|
|
|
|
<tr>
|
|
|
|
<a href="{{ url_for('.domain_edit', domain_name=domain.name) }}" title="{% trans %}Edit{% endtrans %}"><i class="fa fa-pencil"></i></a>
|
|
|
|
<td>
|
|
|
|
<a href="{{ url_for('.domain_delete', domain_name=domain.name) }}" title="{% trans %}Delete{% endtrans %}"><i class="fa fa-trash"></i></a>
|
|
|
|
<a href="{{ url_for('.domain_details', domain_name=domain.name) }}" title="{% trans %}Details{% endtrans %}"><i class="fa fa-list"></i></a>
|
|
|
|
{% endif %}
|
|
|
|
{% if current_user.global_admin %}
|
|
|
|
</td>
|
|
|
|
<a href="{{ url_for('.domain_edit', domain_name=domain.name) }}" title="{% trans %}Edit{% endtrans %}"><i class="fas fa-pencil-alt"></i></a>
|
|
|
|
<td>
|
|
|
|
<a href="{{ url_for('.domain_delete', domain_name=domain.name) }}" title="{% trans %}Delete{% endtrans %}"><i class="fa fa-trash"></i></a>
|
|
|
|
<a href="{{ url_for('.user_list', domain_name=domain.name) }}" title="{% trans %}Users{% endtrans %}"><i class="fa fa-envelope-o"></i></a>
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ url_for('.alias_list', domain_name=domain.name) }}" title="{% trans %}Aliases{% endtrans %}"><i class="fa fa-at"></i></a>
|
|
|
|
</td>
|
|
|
|
<a href="{{ url_for('.manager_list', domain_name=domain.name) }}" title="{% trans %}Managers{% endtrans %}"><i class="fa fa-user"></i></a>
|
|
|
|
<td>
|
|
|
|
{% if current_user.global_admin %}
|
|
|
|
<a href="{{ url_for('.user_list', domain_name=domain.name) }}" title="{% trans %}Users{% endtrans %}"><i class="far fa-envelope"></i></a>
|
|
|
|
<a href="{{ url_for('.alternative_list', domain_name=domain.name) }}" title="{% trans %}Alternatives{% endtrans %}"><i class="fa fa-asterisk"></i></a>
|
|
|
|
<a href="{{ url_for('.alias_list', domain_name=domain.name) }}" title="{% trans %}Aliases{% endtrans %}"><i class="fa fa-at"></i></a>
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ url_for('.manager_list', domain_name=domain.name) }}" title="{% trans %}Managers{% endtrans %}"><i class="fa fa-user"></i></a>
|
|
|
|
</td>
|
|
|
|
{% if current_user.global_admin %}
|
|
|
|
<td>{{ domain.name }}</td>
|
|
|
|
<a href="{{ url_for('.alternative_list', domain_name=domain.name) }}" title="{% trans %}Alternatives{% endtrans %}"><i class="fa fa-asterisk"></i></a>
|
|
|
|
<td>{{ domain.users | count }} / {{ '∞' if domain.max_users == -1 else domain.max_users }}</td>
|
|
|
|
{% endif %}
|
|
|
|
<td>{{ domain.aliases | count }} / {{ '∞' if domain.max_aliases == -1 else domain.max_aliases }}</td>
|
|
|
|
</td>
|
|
|
|
<td>{{ domain.comment or '' }}</td>
|
|
|
|
<td>{{ domain.name }}</td>
|
|
|
|
<td>{{ domain.created_at }}</td>
|
|
|
|
<td>{{ domain.users | count }} / {{ '∞' if domain.max_users == -1 else domain.max_users }}</td>
|
|
|
|
<td>{{ domain.updated_at or '' }}</td>
|
|
|
|
<td>{{ domain.aliases | count }} / {{ '∞' if domain.max_aliases == -1 else domain.max_aliases }}</td>
|
|
|
|
</tr>
|
|
|
|
<td>{{ domain.comment or '' }}</td>
|
|
|
|
{% endfor %}
|
|
|
|
<td>{{ domain.created_at }}</td>
|
|
|
|
|
|
|
|
<td>{{ domain.updated_at or '' }}</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
{% endcall %}
|
|
|
|
{% endcall %}
|
|
|
|
{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|