]>
Commit | Line | Data |
---|---|---|
60024cc8 | 1 | {% extends "base-1.html" %} |
940227cb | 2 | |
60024cc8 | 3 | {% block title %}{{ _("Mirror %s") % item.hostname }}{% end block %} |
940227cb | 4 | |
60024cc8 MT |
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 %} | |
940227cb | 16 | |
60024cc8 MT |
17 | <h1>{{ item.hostname }}</h1> |
18 | </div> | |
19 | ||
20 | <table class="table"> | |
940227cb MT |
21 | <tr> |
22 | <td>{{ _("Last update") }}</td> | |
23 | <td>{{ locale.format_date(item.last_update, full_format=True) }}</td> | |
24 | </tr> | |
25 | <tr> | |
26 | <td>{{ _("Owner") }}</td> | |
27 | <td>{{ item.owner }}</td> | |
28 | </tr> | |
0673d1b0 MT |
29 | {% if item.prefer_for_countries %} |
30 | <tr> | |
119f55d7 | 31 | <td>{{ _("Preferred for") }}</td> |
0673d1b0 MT |
32 | <td>{{ locale.list(item.prefer_for_countries_names) }}</td> |
33 | </tr> | |
34 | {% end %} | |
119f55d7 MT |
35 | {% if client_distance %} |
36 | <tr> | |
37 | <td>{{ _("Your distance to this mirror") }}</td> | |
38 | <td>{{ "%.1f km" % client_distance }}</td> | |
39 | </tr> | |
40 | {% end %} | |
940227cb MT |
41 | </table> |
42 | ||
60024cc8 | 43 | <a class="btn pull-right" href="{{ item.url }}">{{ _("Go to mirror") }}</a> |
940227cb | 44 | |
60024cc8 MT |
45 | <br style="clear: both;"> |
46 | <hr> | |
940227cb MT |
47 | |
48 | <h3>{{ _("Mirror location") }}</h3> | |
49 | <p> | |
50 | {{ _("The mirror <em>%s</em> is located in %s.") % (item.hostname, item.location_str) }} | |
60024cc8 | 51 | </p> |
119f55d7 MT |
52 | |
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"> | |
56 | </iframe> | |
57 | <p> | |
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> | |
59 | - | |
60 | © <a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a> contributors, CC-BY-SA | |
61 | </p> | |
62 | <p class="muted ac"> | |
63 | {{ _("The location of the mirror server is estimated by the IP address.") }} | |
64 | </p> | |
65 | {% else %} | |
66 | {{ _("The location of the mirror server could not be estimated.") }} | |
67 | {% end %} | |
940227cb | 68 | {% end block %} |