diff --git a/templates/base.html.twig b/templates/base.html.twig index c292a7b..acdc90c 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -23,7 +23,7 @@
- {% if 'ROLE_ADMIN' in app.user.getroles() %} + {% if app.user.getroles is defined and 'ROLE_ADMIN' in app.user.getroles() %} Check mailbox now {% endif %} {% if app.user.email is defined %} diff --git a/templates/dashboard/index.html.twig b/templates/dashboard/index.html.twig index 7a23dc8..10d36e9 100644 --- a/templates/dashboard/index.html.twig +++ b/templates/dashboard/index.html.twig @@ -8,44 +8,6 @@ {% endblock %} {% block body %} - {#
-
-
-
Reports
-
-
345k
-

-
-
-
-
-
-
E-Mails reported
-
-
$2.4k
-

-
-
-
-
-
-
SPF Results
-
-
43
-

-
-
-
-
-
-
DKIM Results
-
-
64k
-

-
-
-
-
#}
diff --git a/templates/domains/index.html.twig b/templates/domains/index.html.twig index 35996ac..566f070 100644 --- a/templates/domains/index.html.twig +++ b/templates/domains/index.html.twig @@ -14,6 +14,7 @@ Id Domain FQDN + MX Records Total DMARC reports Total SMTP-TLS policies @@ -23,6 +24,11 @@ {{ domain.id }} {{ domain.fqdn }} + + {% for mx in domain.mxrecords %} + {{ mx.name }}
+ {% endfor %} + {{ domain.dmarc_reports|length }} {{ domain.smtptls_policies|length }}