{%- macro render_result_asn(geoip_result) %}

{{ _('ASN lookup') }}

{%- if 'asn' in geoip_result['asn'] %} {%- endif %} {%- if 'org' in geoip_result['asn'] %} {%- endif %}
{{ _('AS number') }}: {{ geoip_result['asn']['asn'] }}
{{ _('Organization') }}: {{ geoip_result['asn']['org'] }}
{%- endmacro %} {%- macro render_result_city(geoip_result) %}

{{ _('City lookup') }}

{%- if 'cnt_name' in geoip_result['city'] and geoip_result['city']['cnt_name'] %} {%- endif %} {%- if 'ctr_name' in geoip_result['city'] and geoip_result['city']['ctr_name'] %} {%- endif %} {%- if 'cty_name' in geoip_result['city'] and geoip_result['city']['cty_name'] %} {%- endif %} {%- if 'timezone' in geoip_result['city'] %} {%- endif %} {%- if 'latitude' in geoip_result['city'] and 'longitude' in geoip_result['city'] %} {%- endif %}
{{ _('Continent') }}: {{ geoip_result['city']['cnt_name'] }} ({{ geoip_result['city']['cnt_code'] | upper }})
{{ _('Country') }}: {{ geoip_result['city']['ctr_name'] }} ({{ geoip_result['city']['ctr_code'] | upper }}, {{ get_country_flag(geoip_result['city']['ctr_code']) }})
{{ _('City') }}: {{ geoip_result['city']['cty_name'] }}
{{ _('Timezone') }}: {{ geoip_result['city']['timezone'] }}
{{ _('Coordinates') }}: @{{ geoip_result['city']['latitude'] }},{{ geoip_result['city']['longitude'] }}
{%- endmacro %}