]>
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> | |
31 | <td>{{ _("Preferred for") }}:</td> | |
32 | <td>{{ locale.list(item.prefer_for_countries_names) }}</td> | |
33 | </tr> | |
34 | {% end %} | |
940227cb MT |
35 | </table> |
36 | ||
60024cc8 | 37 | <a class="btn pull-right" href="{{ item.url }}">{{ _("Go to mirror") }}</a> |
940227cb | 38 | |
60024cc8 MT |
39 | <br style="clear: both;"> |
40 | <hr> | |
940227cb MT |
41 | |
42 | <h3>{{ _("Mirror location") }}</h3> | |
43 | <p> | |
44 | {{ _("The mirror <em>%s</em> is located in %s.") % (item.hostname, item.location_str) }} | |
60024cc8 MT |
45 | </p> |
46 | <p> | |
940227cb | 47 | <img class="map" |
0673d1b0 | 48 | src="http://maps.google.com/maps/api/staticmap?center={{ item.coordiante_str }}&size=640x280&zoom=6&markers=color:blue|label:.|{{ item.coordiante_str }}&sensor=false" |
940227cb MT |
49 | alt="{{ _("Location of the server") }}" /> |
50 | </p> | |
51 | {% end block %} |