mail-account-admin/templates/domains.html.twig

31 lines
975 B
Twig

{% extends "base.html.twig" %}
{% block title %}Domains{% endblock %}
{% block content %}
<h2>Domains</h2>
<p>This is a list of all domains auto-generated from the existing mail accounts and aliases. As such it is read-only.</p>
<table class="bordered_table">
<tr>
<th style="min-width: 12em">Domain</th>
<th>Accounts</th>
<th>Aliases</th>
</tr>
{% if domainList %}
{% for domain, domainCounts in domainList -%}
<tr>
<td><a href="/accounts?domain={{ domain | escape('url') }}">{{ domain }}</a></td>
<td>{{ domainCounts['accounts'] }}</td>
<td>{{ domainCounts['aliases'] }}</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td colspan="100" style="text-align: center">No domains found.</td>
</tr>
{% endif %}
</table>
{% endblock %}