]>
Commit | Line | Data |
---|---|---|
2517822e | 1 | {% extends "base.html" %} |
f5b01fc2 MT |
2 | |
3 | {% block title %}{{ _("Location of %s") % address }}{% end block %} | |
4 | ||
2517822e MT |
5 | {% block main %} |
6 | {% if is_blacklisted %} | |
7 | <div class="alert alert-warning"> | |
8 | <h6 class="alert-heading">{{ _("This IP address is blacklisted!") }}</h6> | |
f5b01fc2 | 9 | |
2517822e MT |
10 | <p> |
11 | {{ _("Access to some resources on this website might be limited because this IP address is a known abuser.") }} | |
12 | </p> | |
f5b01fc2 | 13 | |
2517822e MT |
14 | <a class="btn btn-warning btn-block" href="/lookup/{{ address }}/blacklists"> |
15 | {{ _("See Full Blacklist Status") }} | |
16 | </a> | |
17 | </div> | |
18 | {% end %} | |
f5b01fc2 | 19 | |
2517822e MT |
20 | <div class="card mb-4"> |
21 | {% if peer and peer.latitude and peer.longitude %} | |
22 | <div class="card-img-top"> | |
23 | {% module Map(peer.latitude, peer.longitude) %} | |
f5b01fc2 | 24 | </div> |
2517822e MT |
25 | {% end %} |
26 | ||
27 | <div class="card-body"> | |
28 | <dl> | |
29 | <dt>{{ _("Country") }}</dt> | |
30 | <dd> | |
31 | {% if peer %} | |
32 | {% if peer.country_name %} | |
33 | {{ peer.country_name }} ({{ peer.country }}) | |
34 | {% else %} | |
35 | {{ peer.country_name }} | |
d8f64b59 | 36 | {% end %} |
2517822e MT |
37 | {% else %} |
38 | <span class="text-muted">{{ _("Unkown") }}</span> | |
39 | {% end %} | |
40 | </dd> | |
41 | ||
42 | {% if peer and peer.asn %} | |
43 | <dt>{{ _("Autonomous System") }}</dt> | |
44 | <dd>{{ peer.asn }}</dd> | |
45 | {% end %} | |
46 | </dl> | |
47 | ||
48 | <a class="btn btn-light btn-block" href="/lookup/{{ address }}/blacklists"> | |
49 | {{ _("Blacklist Status") }} | |
50 | </a> | |
f5b01fc2 MT |
51 | </div> |
52 | </div> | |
53 | {% end block %} |