Fix MX DNS record

This commit is contained in:
Son NK 2019-12-30 18:58:44 +01:00
parent c3620a1e45
commit ef8f87798b
2 changed files with 6 additions and 2 deletions

View File

@ -32,7 +32,7 @@
{% for priority, email_server in EMAIL_SERVERS_WITH_PRIORITY %}
<div class="mb-3 p-3" style="background-color: #eee">
Domain: <em>{{ custom_domain.domain }}</em> <br>
Priority: 10 <br>
Priority: {{priority}} <br>
Target: <em>{{ email_server }}</em> <br>
</div>
{% endfor %}

View File

@ -95,7 +95,11 @@ def domain_detail_dns(custom_domain_id):
dkim_record = f"v=DKIM1; k=rsa; p={DKIM_DNS_VALUE}"
return render_template("dashboard/domain_detail/dns.html", **locals())
return render_template(
"dashboard/domain_detail/dns.html",
EMAIL_SERVERS_WITH_PRIORITY=EMAIL_SERVERS_WITH_PRIORITY,
**locals(),
)
@dashboard_bp.route("/domains/<int:custom_domain_id>/info", methods=["GET", "POST"])