Fixed map link in text version

This commit is contained in:
Slatian 2023-02-25 18:04:31 +01:00
parent 65306fe05a
commit 574fe77717
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@
{% 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)}}">
=> {{ links::map_link(lat=r.location.coordinates.lat, lon=r.location.coordinates.lon)}}
{% endif %}
The GeopIP and ASN information is provided by the GeoLite2 database created by MaxMind.

View File

@ -31,6 +31,6 @@
</ul>
{% endmacro asn_links %}
{% macro map_link(lat, lon) %}
{% macro map_link(lat, lon) -%}
https://www.openstreetmap.org/export/embed.html?bbox={{lon-0.03}}%2C{{lat-0.03}}%2C{{lon+0.03}}%2C{{lat+0.03}}&layer=mapnik&marker={{lat}}%2C{{lon}}
{% endmacro map_link %}
{%- endmacro map_link %}