{% load i18n %}{% comment %} One reverse relation's preview card: a bounded table plus a link through to the full list. Shared between the plain stacked layout and the tab strip in detail.html — the card itself does not know which one it is in. {% endcomment %}

{{ block.label }}

{% comment %} A bare number beside a heading reads as "Orders 47" and could be anything; the noun makes the count self-describing. {% endcomment %} {{ block.count }} {% translate "records" %} {% if block.url %} {% comment %} Every related block ships a "View all", so out of context the links are indistinguishable from one another. The hidden suffix is what a screen reader's link list needs to tell them apart. {% endcomment %} {% translate "View all" %} {{ block.label }} {% endif %}
{% if block.rows %} {% comment %} A bounded preview, never the whole set. Loading every child row is what makes a contrib.admin record with fifty thousand children impossible to open; five rows and a link cost the same whatever the count. {% endcomment %}
{% for column in block.columns %}{% endfor %} {% for row in block.rows %} {% for cell in row.cells %} {% endfor %} {% endfor %}
{% blocktranslate with label=block.label shown=block.rows|length total=block.count %}{{ label }} — first {{ shown }} of {{ total }}{% endblocktranslate %}
{{ column.label }}
{% if cell.is_link and row.url %} {% include "vantage/partials/cell_link.html" with url=row.url record=row.obj %} {% else %}{{ cell.value }}{% endif %}
{% if block.more %} {% endif %} {% else %}
{% if block.count %}{% translate "Not shown here." %}{% else %}{% translate "None yet." %}{% endif %}
{% endif %}