{% load i18n %} {% if hosts %}
{% trans "IP address" %}
{% trans "Hostname" %}
{% trans "Country" %}
{% for host in hosts %}
{{ host.ip_address }}
{{ host.hostname|default:"Lookup failed" }}
{% if host.country_code %} {{host.country_code}} {% endif %}  {{ host.country_name }}
{% endfor %}
{% else %}    -- {% trans "direct connection" %} -- {% endif %}