{% if hosts %} {% for host in hosts %} {{host.ip_address}} {{host.hostname}} {% if host.country_code %} {{host.country_code}} {% endif %}  {{host.country_name}} {% endfor %}
IP address Hostname Country
{% else %}    -- direct connection -- {% endif %}