{% extends "kin/base.html" %} {% block title %}Relationship finder{% endblock %} {% block content %}

How is A related to B?

{% if error %}

{{ error }}

{% endif %} {% if result %} {% if not result.related %}

No relationship found

{{ result.a.name }} and {{ result.b.name }} are not connected by recorded parentage or marriage (up to one marriage hop).

{% endif %} {% for path in result.paths %}

{% if forloop.first %}{{ result.a.name }} is {{ result.b.name }}'s {{ path.term }}{% else %}Also: {{ path.term }}{% endif %}

{% if path.kind == 'blood' %}

{% if path.half %}Half-relationship (one common ancestor). {% endif %}Common ancestor: {{ path.common_ancestor }}, {{ path.generations_up.0 }} generation(s) above {{ result.a.name }} and {{ path.generations_up.1 }} above {{ result.b.name }}.

{% endif %} {% if path.indian %}

Indian kinship: {{ path.indian.hindi }} (Hindi) · {{ path.indian.marathi }} (Marathi) — {{ path.indian.note }}

{% endif %}
    {% for n in path.path %}
  1. {{ n.name }}{% if n.edge %}{{ n.edge }}{% endif %}
  2. {% endfor %}
{% endfor %} {% if result.related and result.reverse_term %}

Conversely, {{ result.b.name }} is {{ result.a.name }}'s {{ result.reverse_term }}.

{% endif %} {% if result.paths|length > 1 %}

Several paths exist (for example pedigree collapse or a marriage between relatives); the closest is listed first.

{% endif %} {% endif %} {% endblock %}