From 37b4cecddb4826a32b341375ca2034b09fca5613 Mon Sep 17 00:00:00 2001 From: Ante de Baas Date: Thu, 28 Sep 2023 20:28:21 +0200 Subject: [PATCH] add mxrecords, cleanup, setup loading bugfix --- templates/base.html.twig | 2 +- templates/dashboard/index.html.twig | 38 ----------------------------- templates/domains/index.html.twig | 6 +++++ 3 files changed, 7 insertions(+), 39 deletions(-) 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 }}