{% extends "wallets/base.html" %} {% block sub_content %}

History {{key.uids.0|truncate(50)}}


{% with coins=clist.1|map(attribute="amount")|list|join(" + ") -%}
{#
{{coins}}
#}
{% endwith %}
{% for label,data in [("Received", recipient), ("Sent", sender)] -%}

{{label}} transactions

{% for number, tx in data.items()|reverse -%} {# {% with tx=r.value.transaction -%} #} {% if type == "all" or tx.type|lower == type|lower -%} {% endif -%} {# {% endwith -%} #} {% endfor -%}
# {{"Sender" if label == "Received" else "Recipient" }} Comment Amount
{{tx.number}} {% with reference=tx.sender if label == "Received" else tx.recipient -%} {% with name=settings.public_keys[reference].uids.0 if settings.public_keys[reference] else "", keyid=reference[-8:] -%} {% if reference == key.fingerprint -%} me {% else -%} {{name|truncate(25) if name else keyid}} {% endif -%} {% endwith -%} {% endwith -%} {{tx.type|title}} {{tx.comment|trim|truncate(150)}} {% with coins=tx.coins|map(attribute="id")|map("compute_coin")|list -%} {{coins|sum}} {% endwith -%}
{% endfor -%} {% endblock %}