Template improments, links, breadcrumbs for domain lookups

This commit is contained in:
Slatian
2023-02-24 00:01:51 +01:00
parent 6e1d3c02ef
commit da13444a2e
10 changed files with 112 additions and 8 deletions

31
templates/asn.html Normal file
View File

@ -0,0 +1,31 @@
{% extends "base.html" %}
{% import "helpers.html" as helper %}
{% import "links.html" as links %}
{% block title %}AS{{ data.asn }}{% endblock %}
{% block og_title %}AS{{ data.asn }}{% endblock %}
{% block h1 %}<code>AS{{ data.asn }}</code>{% endblock %}
{% block og_path %}/?query=AS{{ data.asn }}{% endblock %}
{% block content %}
{% if data.result.idn %}
{% set idn = data.result.idn %}
<section>
<h2>Internationalized Domain Names</h2>
<p>Because of some limitations the DNS has, Unicode caracters need a special encoding.</p>
{% if idn.original_was == "unicode" %}
<p>Your Unicode query has been encoded as the <i>IDN</i> <code>{{ idn.idn }}</code> to generate the results below.</p>
{% else %}
<p>Your <i>IDN</i> would decode to <code>{{ idn.unicode }}</code>.</p>
{% endif %}
</section>
{% endif %}
<section>
<h2>Other Services</h2>
{{ links::asn_links(asn=data.asn) }}
</section>
{% endblock %}