mirror of
https://github.com/simple-login/app.git
synced 2024-09-29 13:11:29 +02:00
minor comments on domain-detail branch
This commit is contained in:
parent
e239be504c
commit
45c49f1e1a
@ -66,11 +66,13 @@ with open(DKIM_PRIVATE_KEY_PATH) as f:
|
|||||||
|
|
||||||
|
|
||||||
with open(DKIM_PUBLIC_KEY_PATH) as f:
|
with open(DKIM_PUBLIC_KEY_PATH) as f:
|
||||||
DKIM_DNS_VALUE = f.read()
|
DKIM_DNS_VALUE = (
|
||||||
DKIM_DNS_VALUE = DKIM_DNS_VALUE.replace("-----BEGIN PUBLIC KEY-----", "")
|
f.read()
|
||||||
DKIM_DNS_VALUE = DKIM_DNS_VALUE.replace("-----END PUBLIC KEY-----", "")
|
.replace("-----BEGIN PUBLIC KEY-----", "")
|
||||||
DKIM_DNS_VALUE = DKIM_DNS_VALUE.replace("\r", "")
|
.replace("-----END PUBLIC KEY-----", "")
|
||||||
DKIM_DNS_VALUE = DKIM_DNS_VALUE.replace("\n", "")
|
.replace("\r", "")
|
||||||
|
.replace("\n", "")
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
DKIM_HEADERS = [b"from", b"to", b"subject"]
|
DKIM_HEADERS = [b"from", b"to", b"subject"]
|
||||||
|
@ -16,8 +16,12 @@
|
|||||||
<div class="card" style="max-width: 50rem">
|
<div class="card" style="max-width: 50rem">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title">
|
<h5 class="card-title">
|
||||||
{{ custom_domain.domain }}
|
<a href="{{ url_for('dashboard.domain_detail', custom_domain_id=custom_domain.id) }}">{{ custom_domain.domain }}</a>
|
||||||
{% if custom_domain.verified %} ✅ {% else %} 🚫{% endif %}
|
{% if custom_domain.verified %}
|
||||||
|
<span class="cursor" data-toggle="tooltip" data-original-title="Domain Verified">✅</span>
|
||||||
|
{% else %}
|
||||||
|
<span class="cursor" data-toggle="tooltip" data-original-title="Domain Not Verified">🚫 </span>
|
||||||
|
{% endif %}
|
||||||
</h5>
|
</h5>
|
||||||
<h6 class="card-subtitle mb-2 text-muted">
|
<h6 class="card-subtitle mb-2 text-muted">
|
||||||
Created {{ custom_domain.created_at | dt }} <br>
|
Created {{ custom_domain.created_at | dt }} <br>
|
||||||
|
@ -19,7 +19,12 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="font-weight-bold">1. MX record
|
<div class="font-weight-bold">1. MX record
|
||||||
{% if custom_domain.verified %} ✅ {% else %} 🚫{% endif %}
|
|
||||||
|
{% if custom_domain.verified %}
|
||||||
|
<span class="cursor" data-toggle="tooltip" data-original-title="MX Record Verified">✅</span>
|
||||||
|
{% else %}
|
||||||
|
<span class="cursor" data-toggle="tooltip" data-original-title="MX Record Not Verified">🚫 </span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-2">Add the following MX DNS record to your domain</div>
|
<div class="mb-2">Add the following MX DNS record to your domain</div>
|
||||||
@ -64,7 +69,11 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="font-weight-bold">2. SPF (Optional)
|
<div class="font-weight-bold">2. SPF (Optional)
|
||||||
{% if custom_domain.spf_verified %} ✅ {% else %} 🚫{% endif %}
|
{% if custom_domain.spf_verified %}
|
||||||
|
<span class="cursor" data-toggle="tooltip" data-original-title="SPF Verified">✅</span>
|
||||||
|
{% else %}
|
||||||
|
<span class="cursor" data-toggle="tooltip" data-original-title="SPF Not Verified">🚫 </span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
@ -116,7 +125,11 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="font-weight-bold">3. DKIM (Optional)
|
<div class="font-weight-bold">3. DKIM (Optional)
|
||||||
{% if custom_domain.dkim_verified %} ✅ {% else %} 🚫{% endif %}
|
{% if custom_domain.dkim_verified %}
|
||||||
|
<span class="cursor" data-toggle="tooltip" data-original-title="SPF Verified">✅</span>
|
||||||
|
{% else %}
|
||||||
|
<span class="cursor" data-toggle="tooltip" data-original-title="DKIM Not Verified">🚫 </span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
@ -80,7 +80,7 @@
|
|||||||
>
|
>
|
||||||
<div class="card p-3 {% if alias_info.highlight %} highlight-row {% endif %}">
|
<div class="card p-3 {% if alias_info.highlight %} highlight-row {% endif %}">
|
||||||
<div>
|
<div>
|
||||||
<span class="clipboard mb-0"
|
<span class="clipboard cursor mb-0"
|
||||||
{% if gen_email.enabled %}
|
{% if gen_email.enabled %}
|
||||||
data-toggle="tooltip"
|
data-toggle="tooltip"
|
||||||
title="Copy to clipboard"
|
title="Copy to clipboard"
|
||||||
@ -118,7 +118,7 @@
|
|||||||
<form method="post">
|
<form method="post">
|
||||||
<input type="hidden" name="form-name" value="switch-email-forwarding">
|
<input type="hidden" name="form-name" value="switch-email-forwarding">
|
||||||
<input type="hidden" name="gen-email-id" value="{{ gen_email.id }}">
|
<input type="hidden" name="gen-email-id" value="{{ gen_email.id }}">
|
||||||
<label class="custom-switch mt-2"
|
<label class="custom-switch cursor mt-2"
|
||||||
data-toggle="tooltip"
|
data-toggle="tooltip"
|
||||||
{% if gen_email.enabled %}
|
{% if gen_email.enabled %}
|
||||||
title="Block Alias"
|
title="Block Alias"
|
||||||
|
@ -105,14 +105,5 @@ def domain_detail(custom_domain_id):
|
|||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"dashboard/domain_detail.html",
|
"dashboard/domain_detail.html",
|
||||||
custom_domain=custom_domain,
|
**locals()
|
||||||
EMAIL_SERVERS_WITH_PRIORITY=EMAIL_SERVERS_WITH_PRIORITY,
|
|
||||||
spf_record=spf_record,
|
|
||||||
dkim_record=dkim_record,
|
|
||||||
mx_errors=mx_errors,
|
|
||||||
mx_ok=mx_ok,
|
|
||||||
spf_errors=spf_errors,
|
|
||||||
spf_ok=spf_ok,
|
|
||||||
dkim_errors=dkim_errors,
|
|
||||||
dkim_ok=dkim_ok,
|
|
||||||
)
|
)
|
||||||
|
@ -67,3 +67,7 @@ em {
|
|||||||
font-size: 0.6rem;
|
font-size: 0.6rem;
|
||||||
line-height: 0.75;
|
line-height: 0.75;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cursor {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user