]>
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 | ||
9068dba1 | 20 | <div class="row"> |
55015ac5 | 21 | <div class="col-lg-4 col-md-4"> |
9068dba1 MT |
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"> | |
55015ac5 | 86 | <a class="btn btn-default" href="{{ item.url }}">{{ _("Go to mirror") }}</a> |
9068dba1 MT |
87 | </p> |
88 | </div> | |
89 | ||
55015ac5 | 90 | <div class="col-lg-8 col-md-8"> |
9068dba1 MT |
91 | {% if item.location %} |
92 | {% module Map(item.latitude, item.longitude) %} | |
55015ac5 | 93 | <p class="text-muted ac"> |
9068dba1 MT |
94 | {{ _("The location of the mirror server is estimated by the IP address.") }} |
95 | </p> | |
96 | {% else %} | |
55015ac5 | 97 | <p class="ac text-muted"> |
9068dba1 MT |
98 | {{ _("The location of this mirror server could not be estimated.") }} |
99 | </p> | |
100 | {% end %} | |
101 | </div> | |
102 | </div> | |
940227cb | 103 | {% end block %} |