mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-07-16 22:13:30 +02:00
Template improments, links, breadcrumbs for domain lookups
This commit is contained in:
31
templates/asn.html
Normal file
31
templates/asn.html
Normal 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 %}
|
||||
|
Reference in New Issue
Block a user