Improve the design of the domain check

This commit is contained in:
Niklas Poslovski
2019-02-23 17:20:00 +01:00
parent 56643a88a7
commit 5d329a7727

View File

@@ -37,44 +37,51 @@
<!-- TODO TODO TODO: I need better styling --> <!-- TODO TODO TODO: I need better styling -->
{% if result %} {% if result %}
<hr/> <hr/>
<table> <h2>The following servers will be used for your domain</h2>
<tr> <div class="panel panel-tortin" style="width:intrinsic;margin-left:30px;float:left">
<td valign="top" style="padding: 0px 10px 0px 10px;">{% trans 'HTTP avatar server:' %}</td> <div class="panel-heading">
<td> <h3 class="panel-title"><i class="fa fa-unlock-alt"></i>&nbsp;HTTP Server</h3>
{% if result.avatar_server_http %} </div>
<tt>{{result.avatar_server_http}}</tt> <div class="panel-body">
{% if result.avatar_server_http_ipv4 %} {% if result.avatar_server_http %}
<br>{{ result.avatar_server_http_ipv4 }} <a href="{{result.avatar_server_http}}">
{% else %} <h4>{{result.avatar_server_http}}</h4>
<br><strong>{% trans 'Warning: no A record for this hostname' %}</strong> </a>
{% endif %} {% if result.avatar_server_http_ipv4 %}
{% if result.avatar_server_http_ipv6 %} <br><center>{{ result.avatar_server_http_ipv4 }}</center>
<br>{{ result.avatar_server_http_ipv6 }} {% endif %}
{% endif %} {% if result.avatar_server_http_ipv6 %}
{% else %} <br><center>{{ result.avatar_server_http_ipv6 }}</center>
<i>{% trans 'use <tt>http://cdn.libravatar.org</tt>' %}</i> {% endif %}
{% endif %} {% else %}
</td> <a href="http://cdn.libravatar.org">
</tr> <h4>http://cdn.libravatar.org</h4>
<tr> </a>
<td valign="top" style="padding: 0px 10px 0px 10px;">{% trans 'HTTPS avatar server:' %}</td> {% endif %}
<td> </div>
{% if result.avatar_server_https %} </div>
<tt>{{result.avatar_server_https}}</tt> <div class="panel panel-tortin" style="width:intrinsic;margin-left:30px;float:left">
{% if result.avatar_server_https_ipv4 %} <div class="panel-heading">
<br>{{ result.avatar_server_https_ipv4 }} <h3 class="panel-title"><i class="fa fa-lock"></i>&nbsp;HTTPS Server</h3>
{% else %} </div>
<br><strong>{% trans 'Warning: no A record for this hostname' %}</strong> <div class="panel-body">
{% endif %} {% if result.avatar_server_https %}
{% if result.avatar_server_https_ipv6 %} <a href="{{result.avatar_server_https}}">
<br>{{ result.avatar_server_https_ipv6 }} <h4>{{result.avatar_server_https}}</h4>
{% endif %} </a>
{% else %} {% if result.avatar_server_https_ipv4 %}
<i>{% trans 'use <tt>https://seccdn.libravatar.org</tt>' %}</i> <br><center>{{ result.avatar_server_https_ipv4 }}</center>
{% endif %} {% endif %}
</td> {% if result.avatar_server_https_ipv6 %}
</tr> <br><center>{{ result.avatar_server_https_ipv6 }}</center>
</table> {% endif %}
{% else %}
<a href="https://seccdn.libravatar.org">
<h4>https://seccdn.libravatar.org</h4>
</a>
{% endif %}
</div>
</div>
{% endif %} {% endif %}
</div> </div>
<div style="height:40px"></div> <div style="height:40px"></div>