{% import "tungsten/components/ui.html" as ui %} {# TransactionsWidget: money in and out, grouped by the item's description. #} {% call ui.card(__(w.heading) if w.heading else none, __(w.description) if w.description else none, 'px-6 pb-4 pt-3', 'h-full', link, w.link_label, w.icon, w.icon_color) %}
{% for it in entries %} {% if it.description %}

{{ __(it.description) }}

{% endif %} {{ ui.transaction_row(__(it.label), it.time, it.value, {'success': 'in', 'danger': 'out'}.get(it.color, 'pending')) }} {% else %}

{{ __('Nothing here yet.') }}

{% endfor %}
{% endcall %}