]>
Commit | Line | Data |
---|---|---|
95483f04 MT |
1 | {% extends "../base.html" %} |
2 | ||
3 | {% block title %}{{ _("Mirror %s") % mirror }}{% end block %} | |
4 | ||
5 | {% block content %} | |
6 | <section> | |
7 | <div class="container"> | |
8 | <h1 class="mb-0">{{ mirror }}</h1> | |
9 | ||
10 | {% if mirror.owner %} | |
11 | <p>{{ _("by %s") % mirror.owner }}</p> | |
12 | {% end %} | |
13 | </div> | |
14 | </section> | |
15 | ||
16 | <div class="row justify-content-center"> | |
17 | <div class="col-12 col-md-6"> | |
18 | <div class="card mb-4"> | |
440aba92 MT |
19 | {# <div class="card-img-top"> |
20 | {% module Map() %} | |
21 | </div> #} | |
95483f04 MT |
22 | |
23 | <div class="card-body"> | |
24 | <dl class="mb-0"> | |
25 | {% if mirror.asn %} | |
26 | <dt>{{ _("Autonomous System") }}</dt> | |
e65793b3 | 27 | <dd>{{ mirror.address.autonomous_system or "AS%s" % mirror.asn }}</dd> |
95483f04 MT |
28 | {% end %} |
29 | ||
30 | <dt>{{ _("Country") }}</dt> | |
440aba92 | 31 | <dd>{{ mirror.country.name }}</dd> |
95483f04 MT |
32 | </dl> |
33 | </div> | |
34 | ||
35 | <ul class="list-group list-group-flush"> | |
36 | {% if mirror.state == "UP" %} | |
37 | <li class="list-group-item list-group-item-success flex-column align-items-start"> | |
38 | <p class="mb-1">{{ _("The mirror is up") }}</p> | |
39 | ||
40 | <small class="text-muted"> | |
41 | {{ _("Last updated %s") % locale.format_date(mirror.last_update) }} | |
42 | </small> | |
43 | </li> | |
44 | {% elif mirror.state == "DOWN" %} | |
45 | <li class="list-group-item list-group-item-danger flex-column align-items-start"> | |
46 | <p class="mb-1">{{ _("The mirror is down") }}</p> | |
47 | ||
48 | <small class="text-muted"> | |
49 | {{ _("Last updated %s") % locale.format_date(mirror.last_update) }} | |
50 | </small> | |
51 | </li> | |
52 | {% elif mirror.state == "OUTOFSYNC" %} | |
53 | <li class="list-group-item list-group-item-warning flex-column align-items-start"> | |
54 | <p class="mb-1">{{ _("The mirror is out of sync") }}</p> | |
55 | ||
56 | <small class="text-muted"> | |
57 | {{ _("Last updated %s") % locale.format_date(mirror.last_update) }} | |
58 | </small> | |
59 | </li> | |
60 | {% end %} | |
61 | </ul> | |
62 | </div> | |
63 | ||
64 | <a class="btn btn-primary btn-block" href="{{ mirror.url }}"> | |
65 | {{ _("Browse Mirror") }} <span class="fas fa-external-link-alt ml-2"></span> | |
66 | </a> | |
67 | </div> | |
68 | </div> | |
69 | {% end block %} |