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

{{ hawat_view_title }}

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

    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 %}
{%- endif %} {%- endblock content %}