diff --git a/templates/ip.txt b/templates/ip.txt index a5246f9..5df470c 100644 --- a/templates/ip.txt +++ b/templates/ip.txt @@ -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. diff --git a/templates/links.html b/templates/links.html index 5c0bf55..7965211 100644 --- a/templates/links.html +++ b/templates/links.html @@ -31,6 +31,6 @@ {% 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 %}