prettify dns page

This commit is contained in:
Son NK 2020-05-11 23:23:08 +02:00
parent 70e842789e
commit 591fee301e
2 changed files with 15 additions and 11 deletions

View File

@ -35,7 +35,7 @@
</div> </div>
{% for priority, email_server in EMAIL_SERVERS_WITH_PRIORITY %} {% for priority, email_server in EMAIL_SERVERS_WITH_PRIORITY %}
<div class="mb-3 p-3 bg-secondary"> <div class="mb-3 p-3 dns-record">
Record: MX <br> Record: MX <br>
Domain: {{ custom_domain.domain }} or @ <br> Domain: {{ custom_domain.domain }} or @ <br>
Priority: {{ priority }} <br> Priority: {{ priority }} <br>
@ -62,7 +62,7 @@
{% if not mx_ok %} {% if not mx_ok %}
<div class="text-danger mt-4"> <div class="text-danger mt-4">
Your DNS is not correctly set. The MX record we obtain is: Your DNS is not correctly set. The MX record we obtain is:
<div class="mb-3 p-3 bg-secondary"> <div class="mb-3 p-3 dns-record">
{% if not mx_errors %} {% if not mx_errors %}
(Empty) (Empty)
{% endif %} {% endif %}
@ -97,7 +97,7 @@
<div class="mb-2">Add the following TXT DNS record to your domain.</div> <div class="mb-2">Add the following TXT DNS record to your domain.</div>
<div class="mb-2 p-3 bg-secondary"> <div class="mb-2 p-3 dns-record">
Record: TXT <br> Record: TXT <br>
Domain: {{ custom_domain.domain }} or @ <br> Domain: {{ custom_domain.domain }} or @ <br>
Value: Value:
@ -125,7 +125,7 @@
{% if not spf_ok %} {% if not spf_ok %}
<div class="text-danger mt-4"> <div class="text-danger mt-4">
Your DNS is not correctly set. The TXT record we obtain is: Your DNS is not correctly set. The TXT record we obtain is:
<div class="mb-3 p-3 bg-secondary"> <div class="mb-3 p-3 dns-record">
{% if not spf_errors %} {% if not spf_errors %}
(Empty) (Empty)
{% endif %} {% endif %}
@ -162,7 +162,7 @@
<div class="mb-2">Add the following CNAME DNS record to your domain.</div> <div class="mb-2">Add the following CNAME DNS record to your domain.</div>
<div class="mb-2 p-3 bg-secondary"> <div class="mb-2 p-3 dns-record">
Record: CNAME <br> Record: CNAME <br>
Domain: <em data-toggle="tooltip" Domain: <em data-toggle="tooltip"
title="Click to copy" title="Click to copy"
@ -197,7 +197,7 @@
The CNAME record we obtain for The CNAME record we obtain for
<em>dkim._domainkey.{{ custom_domain.domain }}</em> is: <em>dkim._domainkey.{{ custom_domain.domain }}</em> is:
<div class="mb-3 p-3 bg-secondary"> <div class="mb-3 p-3 dns-record">
{% for r in dkim_errors %} {% for r in dkim_errors %}
{{ r }} <br> {{ r }} <br>
{% endfor %} {% endfor %}
@ -231,7 +231,7 @@
<div class="mb-2">Add the following TXT DNS record to your domain.</div> <div class="mb-2">Add the following TXT DNS record to your domain.</div>
<div class="mb-2 p-3 bg-secondary"> <div class="mb-2 p-3 dns-record">
Record: TXT <br> Record: TXT <br>
Domain: <em data-toggle="tooltip" Domain: <em data-toggle="tooltip"
title="Click to copy" title="Click to copy"

12
static/style.css vendored
View File

@ -72,14 +72,18 @@ em {
} }
/*Left border for alert zone*/ /*Left border for alert zone*/
.alert-primary{ .alert-primary {
border-left: 5px #467fcf solid; border-left: 5px #467fcf solid;
} }
.alert-danger{ .alert-danger {
border-left: 5px #6b1110 solid; border-left: 5px #6b1110 solid;
} }
.alert-danger::before { .alert-danger::before {
content: "⚠️"; content: "⚠️";
} }
.dns-record {
border: 1px dotted #E3156A;
}