mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-04-01 18:15:39 +02:00
Fixed text templates
This commit is contained in:
parent
574fe77717
commit
e50bd14fcf
@ -85,6 +85,30 @@ MX (Mail Exchange) records:
|
|||||||
No MX (Mail Exchange) records.
|
No MX (Mail Exchange) records.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{%- if r.soa %}
|
||||||
|
SOA (Source Of Authority) records:
|
||||||
|
{% for soa in r.soa %}
|
||||||
|
* MName: {{soa.mname}}
|
||||||
|
* RName: {{soa.rname}}
|
||||||
|
* Serial: {{soa.serial}}
|
||||||
|
* Refresh: {{soa.refresh / 60 | round(precision=2)}}m
|
||||||
|
* Retry: {{soa.retry / 60 | round(precision=2)}}m
|
||||||
|
* expire: {{soa.expire / 3600 | round(precision=2)}}h
|
||||||
|
* minimum: {{soa.minimum / 60 | round(precision=2)}}m TTL
|
||||||
|
{% endfor %}
|
||||||
|
{%- else %}
|
||||||
|
No SOA (Source Of Authority) records.
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{%- if r.ns %}
|
||||||
|
NS (Name Server) records:
|
||||||
|
{% for ns in r.ns -%}
|
||||||
|
* {{ns}}
|
||||||
|
{% endfor %}
|
||||||
|
{%- else %}
|
||||||
|
No NS (Name Server) records.
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{%- if r.caa %}
|
{%- if r.caa %}
|
||||||
CAA (Certification Authority Authorization) records:
|
CAA (Certification Authority Authorization) records:
|
||||||
{% for caa in r.caa -%}
|
{% for caa in r.caa -%}
|
||||||
@ -99,7 +123,7 @@ TXT records:
|
|||||||
{% for txt in r.txt -%}
|
{% for txt in r.txt -%}
|
||||||
* {{txt}}
|
* {{txt}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{%- else -%}
|
{%- else %}
|
||||||
No TXT records.
|
No TXT records.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<dd>{{place.name}} {% if place.iso_code%}({% if iso_code_prefix %}{{iso_code_prefix}}-{% endif %}{{place.iso_code}}){% endif %}</dd>
|
<dd>{{place.name}} {% if place.iso_code%}({% if iso_code_prefix %}{{iso_code_prefix}}-{% endif %}{{place.iso_code}}){% endif %}</dd>
|
||||||
{% else -%}
|
{% else -%}
|
||||||
* {% if label %}{{label}}: {% endif %}{{place.name}}{% if place.iso_code%} ({% if iso_code_prefix %}{{iso_code_prefix}}-{% endif %}{{place.iso_code}}){% endif %}
|
* {% if label %}{{label}}: {% endif %}{{place.name}}{% if place.iso_code%} ({% if iso_code_prefix %}{{iso_code_prefix}}-{% endif %}{{place.iso_code}}){% endif %}
|
||||||
{%- endif -%}
|
{% endif -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endmacro place_dl %}
|
{%- endmacro place_dl %}
|
||||||
|
|
||||||
|
@ -19,40 +19,40 @@
|
|||||||
* AS Name: {{r.asn.name}}
|
* AS Name: {{r.asn.name}}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if r.location -%}
|
{%- if r.location %}
|
||||||
|
|
||||||
## Geolocation
|
## Geolocation
|
||||||
|
|
||||||
{{ helper::place_dl(place=r.location.continent, label="Continent") }}
|
{{ helper::place_dl(place=r.location.continent, label="Continent") -}}
|
||||||
{{ helper::place_dl(place=r.location.country, label="Country") }}
|
{{ 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="") -%}
|
{%- 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") }}
|
{{- helper::place_dl(place=r.location.registered_country, label="Registred in") -}}
|
||||||
{%- endif %}
|
{%- endif -%}
|
||||||
{% if r.location.country.iso_code | default(value="") != r.location.represented_country.iso_code | default(value="") -%}
|
{%- 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") }}
|
{{- helper::place_dl(place=r.location.represented_country, label="Represents") -}}
|
||||||
{%- endif %}
|
{%- endif -%}
|
||||||
{% if r.location.subdivisions -%}
|
{%- if r.location.subdivisions -%}
|
||||||
{%- for sd in 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="")) }}
|
{{- helper::place_dl(place=sd, label="Subdivision", iso_code_prefix=r.location.country.iso_code|default(value="")) -}}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{{ helper::place_dl(place=r.location.city, label="City") }}
|
{{- helper::place_dl(place=r.location.city, label="City") -}}
|
||||||
{% if r.location.postal_code -%}
|
{%- if r.location.postal_code -%}
|
||||||
* Postal Code: {{r.location.postal_code}}
|
* Postal Code: {{r.location.postal_code}}
|
||||||
{%- endif %}
|
{% endif %}
|
||||||
{% if r.location.time_zone -%}
|
{%- if r.location.time_zone -%}
|
||||||
* Timezone: {{r.location.time_zone}}
|
* Timezone: {{r.location.time_zone}}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% if r.location.accuracy -%}
|
{%- if r.location.accuracy -%}
|
||||||
* Accuaracy: ~{{r.location.accuracy}}km<
|
* Accuaracy: ~{{r.location.accuracy}}km
|
||||||
{%- endif %}
|
{% endif %}
|
||||||
{% if r.location.coordinates %}
|
{%- if r.location.coordinates %}
|
||||||
### Coordinates
|
### Coordinates
|
||||||
lat: {{r.location.coordinates.lat}}, lon: {{r.location.coordinates.lon}}
|
lat: {{r.location.coordinates.lat}}, lon: {{r.location.coordinates.lon}}
|
||||||
=> {{ links::map_link(lat=r.location.coordinates.lat, lon=r.location.coordinates.lon)}}
|
=> {{ links::map_link(lat=r.location.coordinates.lat, lon=r.location.coordinates.lon)}}
|
||||||
{% endif %}
|
{%- endif %}
|
||||||
|
|
||||||
The GeopIP and ASN information is provided by the GeoLite2 database created by MaxMind.
|
The GeopIP and ASN information is provided by the GeoLite2 database created by MaxMind.
|
||||||
|
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
{%- block extra_content %}{% endblock -%}
|
{%- block extra_content %}{% endblock -%}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user