{%- extends "_layout.html" %} {%- block content %}

{{ hawat_view_title }}

{{ search_form.search.label(class_='sr-only') }}
{{ get_fa_icon('action-search') }}
{{ search_form.search(class_='form-control', placeholder=gettext('IP address, range, network or abuse email'), size='50') }}
{{ search_form.submit(class_='btn btn-primary') }} {{ gettext('Clear') }}
{{ macros_site.form_errors(search_form.search.errors) }}
{%- if search_item %}
{%- if search_result %}
    {%- for item in search_result %}
  • {% if 'netname' in item %}{{ item['netname'] }}: {% endif %}{{ item['network'] }}

    {{ gettext('Target abuse contacts:') }} {{ item['resolved_abuses'] | join(', ') }}

    {% if 'description' in item %}{{ item['description'] }} {% endif %}(source: {{ item['source'] }})

  • {%- endfor %}
{%- if permission_can('developer') %}

{{ gettext('Raw result') }}

{{ search_result | pprint }}
{%- endif %} {%- else %}
{{ gettext('There are no records for %(item_id)s in Whois database.', item_id = search_item) | safe }}
{%- endif %}
{%- endif %} {%- endblock content %}