1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-16 10:59:53 +02:00
Mailu/admin/mailu/ui/templates/domain/list.html

54 lines
2.4 KiB
HTML
Raw Normal View History

2016-03-19 21:37:48 +02:00
{% extends "base.html" %}
{% block title %}
2016-10-02 14:52:50 +02:00
{% trans %}Domain list{% endtrans %}
2016-03-19 21:37:48 +02:00
{% endblock %}
{% block main_action %}
{% if current_user.global_admin %}
2016-10-02 14:52:50 +02:00
<a class="btn btn-primary" href="{{ url_for('.domain_create') }}">{% trans %}New domain{% endtrans %}</a>
2016-03-19 21:37:48 +02:00
{% endif %}
{% endblock %}
{% block box %}
<table class="table table-bordered">
<tbody>
<tr>
2016-10-02 14:52:50 +02:00
<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>
2016-03-19 21:37:48 +02:00
</tr>
{% for domain in current_user.get_managed_domains() %}
<tr>
2016-03-22 22:15:57 +02:00
<td>
2016-10-02 14:52:50 +02:00
<a href="{{ url_for('.domain_details', domain_name=domain.name) }}" title="{% trans %}Details{% endtrans %}"><i class="fa fa-list"></i></a>&nbsp;
{% if current_user.global_admin %}
2016-10-02 14:52:50 +02:00
<a href="{{ url_for('.domain_edit', domain_name=domain.name) }}" title="{% trans %}Edit{% endtrans %}"><i class="fa fa-pencil"></i></a>&nbsp;
<a href="{{ url_for('.domain_delete', domain_name=domain.name) }}" title="{% trans %}Delete{% endtrans %}"><i class="fa fa-trash"></i></a>&nbsp;
{% endif %}
2016-03-22 22:15:57 +02:00
</td>
2016-03-19 21:37:48 +02:00
<td>
2016-10-02 14:52:50 +02:00
<a href="{{ url_for('.user_list', domain_name=domain.name) }}" title="{% trans %}Users{% endtrans %}"><i class="fa fa-envelope-o"></i></a>&nbsp;
<a href="{{ url_for('.alias_list', domain_name=domain.name) }}" title="{% trans %}Aliases{% endtrans %}"><i class="fa fa-at"></i></a>&nbsp;
<a href="{{ url_for('.manager_list', domain_name=domain.name) }}" title="{% trans %}Managers{% endtrans %}"><i class="fa fa-user"></i></a>&nbsp;
{% 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>&nbsp;
{% endif %}
2016-03-19 21:37:48 +02:00
</td>
<td>{{ domain.name }}</td>
<td>{{ domain.users | count }} / {{ domain.max_users or '∞' }}</td>
<td>{{ domain.aliases | count }} / {{ domain.max_aliases or '∞' }}</td>
2016-03-20 12:38:37 +02:00
<td>{{ domain.comment or '' }}</td>
2016-03-20 12:31:14 +02:00
<td>{{ domain.created_at }}</td>
<td>{{ domain.updated_at or '' }}</td>
2016-03-19 21:37:48 +02:00
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}