{# Hani #1 2026-11-19: where an address is registered (country), who holds it - underlined, with the ownership in a popup - and ↻ to look it up again now. `w` = the address_whois row (or None), `address`, `tab` = the Security events tab to return to #} {% macro cell(w, address, tab='') %}{{ fresh_tag("security:whois") }}{% if w and (w.holder or w.country or w.network) %}{% if w.country %}{{ w.country|country }}{% endif %}{% if w.country and w.holder %} · {% endif %}{{ w.holder or '' }}Registered to {{ w.holder or 'not named' }}
Country: {{ w.country or '—' }}
Network: {{ w.network or '—' }}
AS: {% if w.asn %}AS{{ w.asn }}{% if w.as_name %} {{ w.as_name }}{% endif %}{% else %}—{% endif %}
Abuse contact: {{ w.abuse or '—' }}
{% if w.registry %}From {{ w.registry }}, {% endif %}{{ (w.looked_up_at or '')[:10] }}
{% else %}WHOIS: looking up…{% endif %}{% if admin %}
{% if tab %}{% endif %}
{% endif %}
{% endmacro %}