1 {% extends
"base-1.html" %}
3 {% block title %}{{ _(
"Mirror %s") % item.hostname }}{% end block %}
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>
14 <span class=
"label label-info pull-right">{{ _(
"Unknown") }}
</span>
17 <h1>{{ item.hostname }}
</h1>
22 <td>{{ _(
"Last update") }}
</td>
23 <td>{{ locale.format_date(item.last_update, full_format=True) }}
</td>
26 <td>{{ _(
"Owner") }}
</td>
27 <td>{{ item.owner }}
</td>
29 {% if item.prefer_for_countries %}
31 <td>{{ _(
"Preferred for") }}
</td>
32 <td>{{ locale.list(item.prefer_for_countries_names) }}
</td>
35 {% if client_distance %}
37 <td>{{ _(
"Your distance to this mirror") }}
</td>
38 <td>{{
"%.1f km" % client_distance }}
</td>
43 <a class=
"btn pull-right" href=
"{{ item.url }}">{{ _(
"Go to mirror") }}
</a>
45 <br style=
"clear: both;">
48 <h3>{{ _(
"Mirror location") }}
</h3>
50 {{ _(
"The mirror <em>%s</em> is located in %s.") % (item.hostname, item.location_str) }}
53 {% if item.longitude and item.latitude %}
54 <iframe width=
"100%" height=
"350" frameborder=
"0" scrolling=
"no" marginheight=
"0" marginwidth=
"0"
55 src=
"http://www.openstreetmap.org/export/embed.html?bbox={{ item.longitude - 4 }},{{ item.latitude - 4 }},{{ item.longitude + 4 }},{{ item.latitude + 4 }}&layer=mapquest&marker={{ item.latitude }},{{ item.longitude }}" style=
"border: 1px solid black">
58 <a href=
"http://www.openstreetmap.org/?lat={{ item.latitude }}&lon={{ item.longitude }}&zoom=8&layers=M&mlat={{ item.latitude }}&mlon={{ item.longitude }}" target=
"_blank">{{ _(
"View larger map") }}
</a>
60 © <a href=
"http://www.openstreetmap.org/" target=
"_blank">OpenStreetMap
</a> contributors, CC-BY-SA
63 {{ _(
"The location of the mirror server is estimated by the IP address.") }}
66 {{ _(
"The location of the mirror server could not be estimated.") }}