]> git.ipfire.org Git - ipfire.org.git/blob - templates/geoip/index.html
Major update of the webapp.
[ipfire.org.git] / templates / geoip / index.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ _("GeoIP for %s") % addr }}{% end block %}
4
5 {% block body %}
6 <div class="page-header">
7 <h3>{{ _("GeoIP for %s") % addr }}</h3>
8 </div>
9
10 {% if peer %}
11 <div class="row">
12 <div class="span4">
13 <dl>
14 {% if peer.asn %}
15 <dt>{{ _("Autonomous System") }}</dt>
16 <dd>{{ peer.asn }}</dd>
17 {% end %}
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 %}
36 {% end %}
37 </dl>
38 </div>
39
40 <div class="span8">
41 {% module Map(peer.latitude, peer.longitude) %}
42 </div>
43 </div>
44 {% else %}
45 <div class="alert alert-info">
46 {{ _("No GeoIP information could be found for the IP address '%s'.") % addr }}
47 </div>
48 {% end %}
49
50 {% end block %}