mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-04-07 05:35:38 +02:00
Fixed map link in text version
This commit is contained in:
parent
65306fe05a
commit
574fe77717
@ -48,7 +48,7 @@
|
|||||||
{% 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.
|
||||||
|
@ -31,6 +31,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
{% endmacro asn_links %}
|
{% 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}}
|
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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user