{% extends "base.html" %} {% from "_macros.html" import entity_link, avatar %} {% set active = "relationships" %} {% block title %}Possible relationships{% endblock %} {% block topbar %}{{ icon("link") }} Possible relationships{% endblock %} {% block content %}
{{ icon("link") }} {{ plural(total_hoods, 'neighborhood') }} {{ plural(total_pairs, 'pair') }}{% if total_hoods > page_size %} ยท showing {{ offset + 1 }} to {{ [offset + page_size, total_hoods]|min }}, largest first{% endif %} {% if offset > 0 %}Previous{% endif %} {% if offset + page_size < total_hoods %}Next{% endif %} Entities with a relationship signal (a shared brand, a household) that were kept apart. Some are related; some are one entity the resolver missed.
{% for hood, cands in groups.items() %}

{{ icon("users", 14) }} {{ names[hood] }} {{ plural(cands[0].neighborhood_size, 'entity') }}, {{ plural(cands|length, 'pair') }}

{% for c in cands %} {% endfor %} {% if hidden[hood] %}{% endif %}
{{ avatar(names[c.left_entity]) }}{{ names[c.left_entity] }} {{ avatar(names[c.right_entity]) }}{{ names[c.right_entity] }} {% for s in c.signals %}{{ s|replace('/', ': ')|replace('_', ' ') }} {% endfor %}{{ plural(c.pairs, 'pair') }} {{ icon("scale", 14) }} Decide
+{{ "{:,}".format(hidden[hood]) }} more pairs in this neighborhood
{% else %}
{{ icon("circle-check", 24) }}

No relationship signals between separate entities.

{% endfor %} {% endblock %}