{% extends 'layout.twig' %} {% block title %}Allowlist — IRDB{% endblock %} {% block content %} {% import 'partials/sort.twig' as sort %}

Allowlist

{{ list.total|default(0) }} total
{% set kind_links = [ { label: 'All', value: '' }, { label: 'IPs', value: 'ip' }, { label: 'Subnets', value: 'subnet' }, ] %}
{% for k in kind_links %} {% set is_active = (kind|default('') == k.value) or (kind == null and k.value == '') %} {{ k.label }} {% endfor %}
{% if can_write %}

Add allowlist entry

{% endif %}
{{ sort.th('Kind', 'kind') }} {{ sort.th('Target', 'target') }} {{ sort.th('Reason', 'reason') }} {{ sort.th('Created', 'created', 'date') }} {% if can_write %}{% endif %} {% for item in list.items|default([]) %} {% if can_write %} {% endif %} {% else %} {% endfor %}
Actions
{{ item.kind }} {{ item.kind == 'ip' ? item.ip : item.cidr }} {{ item.reason|default('—') }} {% if item.created_at %}{% endif %} {% include 'partials/confirm_form.twig' with { action: '/app/allowlist/' ~ item.id ~ '/delete', label: 'Remove', description: 'This removes the allowlist entry immediately.', } only %}
No allowlist entries.
{% endblock %}