mirror of
				https://codeberg.org/slatian/service.echoip-slatecave.git
				synced 2025-10-31 17:08:08 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			76 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			76 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| {% extends "base.txt" %}
 | |
| {% import "helpers.html" as helper %}
 | |
| {% import "links.html" as links %}
 | |
| 
 | |
| {% block path %}ip/{{ data.result.address }}{% endblock %}
 | |
| 
 | |
| {% block content %}
 | |
| {% set r = data.result -%}
 | |
| # {% block title %}Lookup {{ data.result.address }}{% endblock %}
 | |
| 
 | |
| {%- if r.mapping %}
 | |
| 
 | |
| ## {{ r.mapping.strategy | title }} Mapping
 | |
| 
 | |
| The address {{ r.mapping.from_address }} was automatically translated to {{ r.mapping.to_address }} using {{ r.mapping.strategy | title }}.
 | |
| {%- endif %}
 | |
| 
 | |
| ## Network information
 | |
| 
 | |
| * Type of Address: {{ helper::ip_info(ip_info=r.ip_info) }}
 | |
| {% if r.hostname -%}
 | |
| * Hostname: {{ r.hostname }}
 | |
| {%- elif r.reverse_dns_disabled_for_privacy %}
 | |
| * Hostname: Lookup disabled by default
 | |
| {%- endif %}
 | |
| {% if r.asn -%}
 | |
| * ASN: AS{{ r.asn.asn }}
 | |
| * AS Name: {{r.asn.name}}
 | |
| {%- endif -%}
 | |
| 
 | |
| {%- if r.reverse_dns_disabled_for_privacy %}
 | |
| 
 | |
| => /ip/{{ data.result.address }}?dns_self_lookup=true Do a reverse DNS lookup
 | |
| {% endif %}
 | |
| 
 | |
| {%- if r.location %}
 | |
| 
 | |
| ## Geolocation
 | |
| 
 | |
| {{ 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="Registered 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 -%}
 | |
| * Postal Code: {{r.location.postal_code}}
 | |
| {% endif %}
 | |
| {%- if r.location.time_zone -%}
 | |
| * Timezone: {{r.location.time_zone}}
 | |
| {% endif -%}
 | |
| {%- if r.location.accuracy -%}
 | |
| * Accuracy: ~{{r.location.accuracy}}km
 | |
| {% endif %}
 | |
| {%- if r.location.coordinates %}
 | |
| ### Coordinates
 | |
| lat: {{r.location.coordinates.lat}}, lon: {{r.location.coordinates.lon}}
 | |
| => {{ links::map_link(lat=r.location.coordinates.lat, lon=r.location.coordinates.lon)}}
 | |
| {%- endif %}
 | |
| 
 | |
| {{ extra.geo_attribution_html | default(value="Please configure the geo_attribution_html key in the template extra configuration.") | striptags }}
 | |
| {% endif -%}
 | |
| 
 | |
| {%- block extra_content %}{% endblock -%}
 | |
| 
 | |
| {%- endblock %}
 | |
| 
 |