Coverage for ivatar/tools/templates/check_domain.html: 77%
73 statements
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-26 00:11 +0000
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-26 00:11 +0000
1{% extends 'base.html' %}
2{% load i18n %}
3{% load static %}
5{% block title %}{% trans 'Check domain' %}{% endblock title %}
7{% block content %}
9<div class="container">
11 <h1>{% trans 'Check domain' %}</h1>
13 {% if form.errors %}
14 <p class="error">{% trans "Please correct errors below:" %}<br>
15 {% if form.openid_identifier.errors %}
16 {{ form.openid_identifier.errors|join:', ' }}
17 {% endif %}
18 {% if form.next.errors %}
19 {{ form.next.errors|join:', ' }}
20 {% endif %}
21 </p>
22 {% endif %}
24 <div style="max-width:640px">
25 <form method="post" name="lookup">
26 {% csrf_token %}
28 <div class="form-group"><label for="id_domain">{% trans 'Domain' %}</label>
29 <input type="text" name="domain" maxlength="254" minlength="6" class="form-control" placeholder="{% trans 'Domain' %}" {% if form.domain.value %} value="{{ form.domain.value }}" {% endif %} id="id_domain">
30 </div>
31 <div class="form-group">
32 <button type="submit" class="button">{% trans 'Check' %}</button>
33 </div>
34 </form>
35 </div>
37 {% if result %}
38 <hr/>
39 <h2>The following servers will be used for your domain</h2>
40<div class="panel panel-tortin" style="width:intrinsic;margin-left:30px;float:left">
41<div class="panel-heading">
42<h3 class="panel-title"><i class="fa fa-unlock-alt"></i> HTTP Server</h3>
43</div>
44<div class="panel-body">
45{% if result.avatar_server_http %}
46<a href="http://{{result.avatar_server_http}}">
47<h4 style="text-transform: none;">http://{{result.avatar_server_http}}</h4>
48</a>
49{% if result.avatar_server_http_ipv4 %}
50<br><center>{{ result.avatar_server_http_ipv4 }}</center>
51{% endif %}
52{% if result.avatar_server_http_ipv6 %}
53<br><center>{{ result.avatar_server_http_ipv6 }}</center>
54{% endif %}
55{% else %}
56<a href="http://cdn.libravatar.org">
57<h4 style="text-transform: none;">http://cdn.libravatar.org</h4>
58</a>
59{% endif %}
60</div>
61</div>
62<div class="panel panel-tortin" style="width:intrinsic;margin-left:30px;float:left">
63<div class="panel-heading">
64<h3 class="panel-title"><i class="fa fa-lock"></i> HTTPS Server</h3>
65</div>
66<div class="panel-body">
67{% if result.avatar_server_https %}
68<a href="https://{{result.avatar_server_https}}">
69<h4 style="text-transform: none;">https://{{result.avatar_server_https}}</h4>
70</a>
71{% if result.avatar_server_https_ipv4 %}
72<br><center>{{ result.avatar_server_https_ipv4 }}</center>
73{% endif %}
74{% if result.avatar_server_https_ipv6 %}
75<br><center>{{ result.avatar_server_https_ipv6 }}</center>
76{% endif %}
77{% else %}
78<a href="https://seccdn.libravatar.org">
79<h4 style="text-transform: none;">https://seccdn.libravatar.org</h4>
80</a>
81{% endif %}
82</div>
83</div>
84 {% endif %}
85</div>
86<div style="height:40px"></div>
87{% endblock content %}