mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-17 21:48:02 +00:00
Improve the design of the domain check
This commit is contained in:
@@ -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> 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> 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>
|
||||||
|
|||||||
Reference in New Issue
Block a user