From 5d329a7727e28cb4afa239c83c565371c00e9cda Mon Sep 17 00:00:00 2001 From: Niklas Poslovski Date: Sat, 23 Feb 2019 17:20:00 +0100 Subject: [PATCH] Improve the design of the domain check --- ivatar/tools/templates/check_domain.html | 83 +++++++++++++----------- 1 file changed, 45 insertions(+), 38 deletions(-) diff --git a/ivatar/tools/templates/check_domain.html b/ivatar/tools/templates/check_domain.html index fd836c8..560779b 100644 --- a/ivatar/tools/templates/check_domain.html +++ b/ivatar/tools/templates/check_domain.html @@ -37,44 +37,51 @@ {% if result %}
- - - - - - - - - -
{% trans 'HTTP avatar server:' %} - {% if result.avatar_server_http %} - {{result.avatar_server_http}} - {% if result.avatar_server_http_ipv4 %} -
{{ result.avatar_server_http_ipv4 }} - {% else %} -
{% trans 'Warning: no A record for this hostname' %} - {% endif %} - {% if result.avatar_server_http_ipv6 %} -
{{ result.avatar_server_http_ipv6 }} - {% endif %} - {% else %} - {% trans 'use http://cdn.libravatar.org' %} - {% endif %} -
{% trans 'HTTPS avatar server:' %} - {% if result.avatar_server_https %} - {{result.avatar_server_https}} - {% if result.avatar_server_https_ipv4 %} -
{{ result.avatar_server_https_ipv4 }} - {% else %} -
{% trans 'Warning: no A record for this hostname' %} - {% endif %} - {% if result.avatar_server_https_ipv6 %} -
{{ result.avatar_server_https_ipv6 }} - {% endif %} - {% else %} - {% trans 'use https://seccdn.libravatar.org' %} - {% endif %} -
+

The following servers will be used for your domain

+
+
+

 HTTP Server

+
+
+{% if result.avatar_server_http %} + +

{{result.avatar_server_http}}

+
+{% if result.avatar_server_http_ipv4 %} +
{{ result.avatar_server_http_ipv4 }}
+{% endif %} +{% if result.avatar_server_http_ipv6 %} +
{{ result.avatar_server_http_ipv6 }}
+{% endif %} +{% else %} + +

http://cdn.libravatar.org

+
+{% endif %} +
+
+
+
+

 HTTPS Server

+
+
+{% if result.avatar_server_https %} + +

{{result.avatar_server_https}}

+
+{% if result.avatar_server_https_ipv4 %} +
{{ result.avatar_server_https_ipv4 }}
+{% endif %} +{% if result.avatar_server_https_ipv6 %} +
{{ result.avatar_server_https_ipv6 }}
+{% endif %} +{% else %} + +

https://seccdn.libravatar.org

+
+{% endif %} +
+
{% endif %}