{% set ipref_conf = config["IPREF"] %} {% set title = ipref_conf["web"]["title"] or "ipref" %} {{ title }}
{{ title }}

Input IP addresses separated by spaces, commas, and/or newlines, and click the "Search" button.

{% for k, v in metadata.items() %} {{ k }}: {{ v }}
{% endfor %}

{% for data in ipref_conf["web"]["search"] %} {% endfor %}
Look-up Items
{{ data["name"] }} {% for item in data["items"] %} {% if item["data"] == "dns.reverse_name" %} {% set dns_rlookup_disabled = not ipref_conf["dns"]["reverse_name"]["enabled"] %} {# TODO: change font color based on the 'disabled' #} {{ item["label"] }} {% if dns_rlookup_disabled %}(disabled by admin){% endif %} {% else %} {% endif %} {% endfor %}
{% if results %}
{% for column in columns %} {% endfor %} {% set include_national_flags = (request.form.get("misc.include_national_flags", "off") == "on") %} {% for result in results %} {% for column in columns %} {% if include_national_flags and column.endswith(".country.iso_code") %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ get_header_name(column) }}
{{ escape_column(get_dot_item(result, column)) }}{{ " " + make_flag(get_dot_item(result, column)) }}{{ escape_column(get_dot_item(result, column)) }}
{% endif %}