]> git.ipfire.org Git - ipfire.org.git/blame - src/templates/location/lookup.html
Migrate to libloc
[ipfire.org.git] / src / templates / location / lookup.html
CommitLineData
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 20 <div class="card mb-4">
2517822e
MT
21 <div class="card-body">
22 <dl>
440aba92
MT
23 {% if address.country_code %}
24 <dt>{{ _("Country") }}</dt>
25 <dd>
26 {{ format_country_name(address.country_code) }}
27 </dd>
28 {% end %}
2517822e 29
440aba92 30 {% if address.asn %}
2517822e 31 <dt>{{ _("Autonomous System") }}</dt>
440aba92 32 <dd>{{ format_asn(address.asn) }}</dd>
2517822e
MT
33 {% end %}
34 </dl>
35
36 <a class="btn btn-light btn-block" href="/lookup/{{ address }}/blacklists">
37 {{ _("Blacklist Status") }}
38 </a>
f5b01fc2
MT
39 </div>
40 </div>
41{% end block %}