]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - templates/mirrors-item.html
Major update of the webapp.
[people/shoehn/ipfire.org.git] / templates / mirrors-item.html
1 {% extends "base-1.html" %}
2
3 {% block title %}{{ _("Mirror %s") % item.hostname }}{% end block %}
4
5 {% block body %}
6 <div class="page-header">
7 {% if item.state == "UP" %}
8 <span class="label label-success pull-right">{{ _("Up") }}</span>
9 {% elif item.state == "DOWN" %}
10 <span class="label label-failure pull-right">{{ _("Down") }}</span>
11 {% elif item.state == "OUTOFSYNC" %}
12 <span class="label label-warning pull-right">{{ _("Out of sync") }}</span>
13 {% else %}
14 <span class="label label-info pull-right">{{ _("Unknown") }}</span>
15 {% end %}
16
17 <h1>{{ item.hostname }}</h1>
18 </div>
19
20 <div class="row">
21 <div class="span4">
22 {% if item.owner %}
23 <dt>{{ _("Owner") }}</dt>
24 <dd>{{ item.owner }}</dd>
25 {% end %}
26
27 {% if item.location_str %}
28 <hr>
29
30 <dt>{{ _("Location") }}</dt>
31 <dd>{{ item.location_str }}</dd>
32 {% elif item.location %}
33 <hr>
34
35 {% if item.country_name %}
36 <dt>{{ _("Country") }}</dt>
37 <dd>{{ item.country_name }}</dd>
38 {% end %}
39
40 {% if item.location.city %}
41 <dt>{{ _("City") }}</dt>
42 <dd>{{ item.location.city }}</dd>
43 {% end %}
44 {% end %}
45
46 {% if item.prefer_for_countries %}
47 <dt>{{ _("Preferred for") }}</dt>
48 <dd>
49 {{ locale.list(item.prefer_for_countries_names) }}
50 </dd>
51 {% end %}
52
53 {% if client_distance %}
54 <dt>{{ _("Estimated distance to you") }}</dt>
55 <dd>{{ "%.0fkm" % client_distance }}</dd>
56 {% end %}
57
58 <hr>
59
60 {% if item.asn %}
61 <dt>{{ _("Autonomous System") }}</dt>
62 <dd>{{ item.asn }}</dd>
63 {% end %}
64
65 <dt>{{ _("IP Addresses") }}</dt>
66 <dd>
67 {% for addr in item.addresses6 + item.addresses4 %}
68 {{ addr }}<br>
69 {% end %}
70 </dd>
71
72 {% if item.enabled %}
73 <hr>
74
75 <dt>{{ _("Last updated") }}</dt>
76 <dd>
77 <abbr title="{{ locale.format_date(item.last_update, full_format=True) }} UTC">
78 {{ locale.format_date(item.last_update, relative=True) }}
79 </abbr>
80 </dd>
81 {% end %}
82
83 <hr>
84
85 <p class="ac">
86 <a class="btn" href="{{ item.url }}">{{ _("Go to mirror") }}</a>
87 </p>
88 </div>
89
90 <div class="span8">
91 {% if item.location %}
92 {% module Map(item.latitude, item.longitude) %}
93 <p class="muted ac">
94 {{ _("The location of the mirror server is estimated by the IP address.") }}
95 </p>
96 {% else %}
97 <p class="ac muted">
98 {{ _("The location of this mirror server could not be estimated.") }}
99 </p>
100 {% end %}
101 </div>
102 </div>
103 {% end block %}