{% extends "base.html" %} {% block title %}Matched Images{% endblock %} {% block page_id %}matched-images{% endblock %} {% block page_title %}Matched Images{% endblock %} {% block eyebrow %}Operations{% endblock %} {% block head %} {% endblock %} {% block content %}

Debug

Matched Images

✅ {{ matched_count }} matched ⚠️ {{ unmatched_count }} unmatched

{% if search %} {{ total }} result{{ 's' if total != 1 }} for "{{ search }}" ✕ Clear {% else %} Showing {{ rows|length }} of {{ total }} {% if tab == 'matched' %}with matched images{% else %}with no matches{% endif %} {% endif %}

Show
{% if rows %}
{% if tab == 'matched' %} {% else %} {% endif %} {% for row in rows %} {% endfor %}
Sl No Visitor EmailMatched ImagesStatus
{{ loop.index + (page-1)*limit }}
{{ row.name }}
{{ row.name }}
ID: {{ row.user_id }}
{{ row.email or '—' }} {% if tab == 'matched' %}
{{ row.images|length }} img {% for img in row.images[:5] %} event photo {% endfor %} {% if row.images|length > 5 %} {% endif %}
{% else %} ⚠️ No photos matched {% endif %}
{% if total_pages > 1 %}
{% if page > 1 %} « {% endif %} {% for p in range(1, total_pages+1) %} {% if p == page %} {{ p }} {% elif p <= 2 or p > total_pages-2 or (p >= page-1 and p <= page+1) %} {{ p }} {% endif %} {% endfor %} {% if page < total_pages %} » {% endif %}
{% endif %} {% else %}
{% if tab == 'matched' %}✅{% else %}⚠️{% endif %}

{% if tab == 'matched' %}No matched users found{% else %}No unmatched users{% endif %}

{% if tab == 'matched' %}Upload event photos and run the trigger to start matching.{% else %}Great — all face-registered users have at least one photo match!{% endif %}

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}