Working geoip lookup

This commit is contained in:
Slatian
2023-02-18 13:09:22 +01:00
parent 2fb2385004
commit 90705ea08a
4 changed files with 114 additions and 80 deletions

7
templates/helpers.html Normal file
View File

@ -0,0 +1,7 @@
{% macro place_dl(place, label="", iso_code_prefix="") %}
{% if place %}
{% if label %}<dh>{{label}}</dh>{% endif %}
<dd>{{place.name}} {% if place.iso_code%}({% if iso_code_prefix %}{{iso_code_prefix}}-{% endif %}{{place.iso_code}}){% endif %}</dd>
{% endif %}
{% endmacro place_dl %}