mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2024-11-10 08:37:21 +01:00
83 lines
2.9 KiB
HTML
83 lines
2.9 KiB
HTML
{% extends "base.html" %}
|
|
{% import "helpers.html" as helper %}
|
|
{% import "links.html" as links %}
|
|
|
|
{% block title %}{{ data.result.address }}{% endblock %}
|
|
{% block og_title %}Lookup {{ data.result.address }}{% endblock %}
|
|
{% block h1 %}Lookup <code>{{ data.result.address }}</code>{% endblock %}
|
|
|
|
{% block og_path %}/ip/{{ data.result.address }}{% endblock %}
|
|
|
|
{% block content %}
|
|
{% set r = data.result %}
|
|
<section>
|
|
<h2>Network Information</h2>
|
|
<dl>
|
|
<dt>Type of Address</dt>
|
|
<dd>{{r.ip_info.scope | title}} {{r.ip_info.cast | title}} IPv{% if r.ip_info.is_v6_address %}6{% else %}4{% endif %}</dd>
|
|
{% if r.hostname %}
|
|
<dt>Hostname</dt>
|
|
<dd>{{ helper::dig(extra=extra, name=r.hostname) }}</dd>
|
|
{% endif %}
|
|
{% if r.asn %}
|
|
<dt><abbr="Autonomous System Number">ASN</abbr></dt>
|
|
<dd>AS{{r.asn.asn}}</dd>
|
|
<dt>AS Name</dt>
|
|
<dd>{{ r.asn.name }}</dd>
|
|
</dl>
|
|
{% endif %}
|
|
{% block other_ip_button %}{% endblock %}
|
|
</section>
|
|
{% if r.location %}
|
|
<section>
|
|
<h2>Geolocation</h2>
|
|
<dl>
|
|
{{ helper::place_dl(place=r.location.continent, label="Continent") }}
|
|
{{ helper::place_dl(place=r.location.country, label="Country") }}
|
|
{% if r.location.country.iso_code | default(value="") != r.location.registered_country.iso_code | default(value="") %}
|
|
{{ helper::place_dl(place=r.location.registered_country, label="Registred in") }}
|
|
{% endif %}
|
|
{% if r.location.country.iso_code | default(value="") != r.location.represented_country.iso_code | default(value="")%}
|
|
{{ helper::place_dl(place=r.location.represented_country, label="Represents") }}
|
|
{% endif %}
|
|
{% if r.location.subdivisions %}
|
|
{% for sd in r.location.subdivisions %}
|
|
{{ helper::place_dl(place=sd, label="Subdivision", iso_code_prefix=r.location.country.iso_code|default(value="")) }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{{ helper::place_dl(place=r.location.city, label="City") }}
|
|
{% if r.location.postal_code %}
|
|
<dt>Postal Code</dt>
|
|
<dd>{{r.location.postal_code}}</dd>
|
|
{% endif %}
|
|
{% if r.location.time_zone %}
|
|
<dt>Timezone</dt>
|
|
<dd>{{r.location.time_zone}}</dd>
|
|
{% endif %}
|
|
{% if r.location.accuracy %}
|
|
<dt>Accuaracy</dt>
|
|
<dd>~{{r.location.accuracy}}km</dd>
|
|
{% endif %}
|
|
{% if r.location.coordinates %}
|
|
<dt>Coordinates</dt>
|
|
<dd><a href="{{ links::map_link(lat=r.location.coordinates.lat, lon=r.location.coordinates.lon)}}">lat: {{r.location.coordinates.lat}}, lon: {{r.location.coordinates.lon}}</a></dd>
|
|
{% endif %}
|
|
</dl>
|
|
<!--We have to put that there to comply with maxminds licensing-->
|
|
<p><small>
|
|
The GeopIP and ASN information is provided by the GeoLite2 database created by
|
|
<a target="_blank" href="https://www.maxmind.com">MaxMind</a>.
|
|
</small></p>
|
|
</section>
|
|
{% endif %}
|
|
{% block extra_content %}{% endblock %}
|
|
<section>
|
|
<h2>Other Services</h2>
|
|
{{ links::ip_address_links(address=r.address)}}
|
|
{% if r.asn %}
|
|
{{ links::asn_links(asn=r.asn.asn, org_name=r.asn.name) }}
|
|
{% endif %}
|
|
</section>
|
|
{% endblock %}
|
|
|