]> git.ipfire.org Git - ipfire.org.git/blame - templates/geoip/index.html
Bootstrap 4 migration: geoip.dev.ipfire.org
[ipfire.org.git] / templates / geoip / index.html
CommitLineData
9068dba1
MT
1{% extends "../base.html" %}
2
3{% block title %}{{ _("GeoIP for %s") % addr }}{% end block %}
4
5{% block body %}
2db1b2bf
SH
6<div class="container">
7 <section class="features-content col-12">
8 <h2 class="display-2 text-center">{{ _("GeoIP for %s") % addr }}</h2>
9
10 {% if peer %}
11 <div class="row">
12 <div class="col-lg-4 col-md-4">
13 <dl>
14 {% if peer.asn %}
15 <dt>{{ _("Autonomous System") }}</dt>
16 <dd>{{ peer.asn }}</dd>
9068dba1 17 {% end %}
2db1b2bf
SH
18
19 <dt>{{ _("Country") }}</dt>
20 <dd>
21 {% if peer.country_name %}
22 {{ peer.country_name }} ({{ peer.country }})
23 {% else %}
24 {{ peer.country_name }}
25 {% end %}
26 </dd>
27
28 {% if peer.city %}
29 <dt>{{ _("City") }}</dt>
30 <dd>{{ peer.city }}</dd>
31
32 {% if peer.postal_code %}
33 <dt>{{ _("Postal Code") }}</dt>
34 <dd>{{ peer.postal_code }}</dd>
35 {% end %}
9068dba1 36 {% end %}
2db1b2bf
SH
37 </dl>
38
39 {% if mirrors %}
40 <h4>{{ _("Preferred Mirrors") }}</h4>
41
42 <ul>
43 {% for mirror in mirrors %}
44 <li>
45 <a href="http://mirrors.ipfire.org/mirror/{{ mirror.hostname }}">
46 {{ mirror.hostname }}
47 </a>
48 <span class="pull-right">
49 {{ _("%.0f km") % mirror.distance_to(peer) }}
50 </span>
51 </li>
52 {% end %}
53 </ul>
9068dba1 54 {% end %}
2db1b2bf
SH
55 </div>
56
57 <div class="col-lg-8 col-md-8">
58 {% module Map(peer.latitude, peer.longitude) %}
59 </div>
9068dba1 60 </div>
2db1b2bf
SH
61 {% else %}
62 <div class="alert alert-info">
63 <p>{{ _("No GeoIP information could be found for the IP address '%s'.") % addr }}</p>
9068dba1 64 </div>
2db1b2bf
SH
65 {% end %}
66 </section>
67</div>
9068dba1
MT
68
69{% end block %}