{% load i18n %} {# One side of a combined transfer, laid out like a mini transaction: account + metadata | amount #} {# Only the divider between legs gets the extra space; the outer edges stay flush #}
{# Timeline rail: x sits under the transfer icon's center (7.5px into the column, minus the container's ps-5 = 20px). #} {# The first leg's rail reaches up past the description's mb + container mt to the icon; the last one stops at its icon, making └ #} {# Stub from the rail into this leg's icon, at the icon's vertical center #} {# h-5 matches the account line's height so the icon centers on it #}
{# Like a regular item: amount drops below on small screens, bottom-right on lg #}
{% if leg.account.group %}{{ leg.account.group.name }} • {% endif %}{{ leg.account.name }}
{# Same rhythm as a regular item's metadata rows: mb-2 lg:mb-1 between rows, pe-1 + mr-1 after the icon #}
{# h-4 = one text-xs line, so each icon centers on its row's first line #} {% if leg.category %}
{{ leg.category.name }}
{% endif %} {% if leg.tags.all %}
{{ leg.tags.all|join:", " }}
{% endif %} {% if leg.entities.all %}
{{ leg.entities.all|join:", " }}
{% endif %}
{# Mobile gaps match a regular item's amount rows (mb-2 lg:mb-0) #}
{% if not dummy %} {% with exchanged=leg.exchanged_amount %} {% if exchanged %} {% endif %} {% endwith %} {% endif %}