{% load i18n %} {% load split_urls %}
  • {{ item.date|date:"M" }}
    {{ item.date|date:"j" }}
    {% if item.is_payment %}
    {% if item.from_participant_id == me_id %}{% blocktranslate with to=item.to_participant.name %}You paid {{ to }}{% endblocktranslate %} {% elif item.to_participant_id == me_id %}{% blocktranslate with from=item.from_participant.name %}{{ from }} paid you{% endblocktranslate %} {% else %}{% blocktranslate with from=item.from_participant.name to=item.to_participant.name %}{{ from }} paid {{ to }}{% endblocktranslate %}{% endif %} {% include 'splits/fragments/event/activity_flags.html' %}
    {% if item.notes %}
    {{ item.notes }}
    {% endif %} {% else %}
    {{ item.description }}{% include 'splits/fragments/event/activity_flags.html' %}
    {% if item.paid_by_id == me_id %}{% translate 'You paid' %}{% else %}{% blocktranslate with name=item.paid_by.name %}{{ name }} paid{% endblocktranslate %}{% endif %}
    {% endif %}
    {% if item.is_payment %} {% elif item.my_delta is None %}
    {% translate 'not involved' %}
    {% elif item.my_delta > 0 %}
    {% translate 'you lent' %}
    {% elif item.my_delta < 0 %}
    {% translate 'you borrowed' %}
    {% else %}
    {% translate 'settled' %}
    {% endif %}
    {% if not item.is_payment %}
    {% for s in item.shares.all %}
    {% if s.participant_id == me_id %}{% translate 'You' %}{% else %}{{ s.participant.name }}{% endif %}
    {% endfor %}
    {% if item.split_type != 'EQUAL' %}
    {% blocktranslate with mode=item.get_split_type_display %}Split by {{ mode }}{% endblocktranslate %}
    {% endif %} {% endif %} {% if item.notes %}

    {{ item.notes }}

    {% endif %} {% if item.attachments.all or item.user_tx_links %}
    {% for att in item.attachments.all %} {{ att.original_name }} {% endfor %} {% include 'splits/fragments/tx_links.html' with links=item.user_tx_links %}
    {% endif %} {% if item.can_sync or item.can_edit %}
    {% if item.can_sync %} {% endif %} {% if item.can_edit %} {% endif %}
    {% endif %}