|
|
@ -1,12 +1,12 @@
|
|
|
|
{% extends "base.html" %}
|
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{% block title %}
|
|
|
|
Domain list
|
|
|
|
{% trans %}Domain list{% endtrans %}
|
|
|
|
{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block main_action %}
|
|
|
|
{% block main_action %}
|
|
|
|
{% if current_user.global_admin %}
|
|
|
|
{% if current_user.global_admin %}
|
|
|
|
<a class="btn btn-primary" href="{{ url_for('.domain_create') }}">New domain</a>
|
|
|
|
<a class="btn btn-primary" href="{{ url_for('.domain_create') }}">{% trans %}New domain{% endtrans %}</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
@ -14,28 +14,28 @@ Domain list
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th>Actions</th>
|
|
|
|
<th>{% trans %}Actions{% endtrans %}</th>
|
|
|
|
<th>Manage</th>
|
|
|
|
<th>{% trans %}Manage{% endtrans %}</th>
|
|
|
|
<th>Domain name</th>
|
|
|
|
<th>{% trans %}Domain name{% endtrans %}</th>
|
|
|
|
<th>Mailbox count</th>
|
|
|
|
<th>{% trans %}Mailbox count{% endtrans %}</th>
|
|
|
|
<th>Alias count</th>
|
|
|
|
<th>{% trans %}Alias count{% endtrans %}</th>
|
|
|
|
<th>Comment</th>
|
|
|
|
<th>{% trans %}Comment{% endtrans %}</th>
|
|
|
|
<th>Created</th>
|
|
|
|
<th>{% trans %}Created{% endtrans %}</th>
|
|
|
|
<th>Last edit</th>
|
|
|
|
<th>{% trans %}Last edit{% endtrans %}</th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
{% for domain in current_user.get_managed_domains() %}
|
|
|
|
{% for domain in current_user.get_managed_domains() %}
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<a href="{{ url_for('.domain_details', domain_name=domain.name) }}" title="Details"><i class="fa fa-list"></i></a>
|
|
|
|
<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 %}
|
|
|
|
{% if current_user.global_admin %}
|
|
|
|
<a href="{{ url_for('.domain_edit', domain_name=domain.name) }}" title="Edit"><i class="fa fa-pencil"></i></a>
|
|
|
|
<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="Delete"><i class="fa fa-trash"></i></a>
|
|
|
|
<a href="{{ url_for('.domain_delete', domain_name=domain.name) }}" title="{% trans %}Delete{% endtrans %}"><i class="fa fa-trash"></i></a>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<a href="{{ url_for('.user_list', domain_name=domain.name) }}" title="Users"><i class="fa fa-envelope-o"></i></a>
|
|
|
|
<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="Aliases"><i class="fa fa-at"></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="Managers"><i class="fa fa-user"></i></a>
|
|
|
|
<a href="{{ url_for('.manager_list', domain_name=domain.name) }}" title="{% trans %}Managers{% endtrans %}"><i class="fa fa-user"></i></a>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>{{ domain.name }}</td>
|
|
|
|
<td>{{ domain.name }}</td>
|
|
|
|
<td>{{ domain.users | count }} / {{ domain.max_users or '∞' }}</td>
|
|
|
|
<td>{{ domain.users | count }} / {{ domain.max_users or '∞' }}</td>
|
|
|
|