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