blob: d683879e7983dd7083ed912515f10be90391c1bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{% macro list(resource, action, xs) -%}
{% if xs -%}
{% set l = xs | length %}
{{ xs | length }} {{ pluralize(l, resource) }} {{ pluralize(l, action) }} :
{% for x in xs -%}
- {{ x.date }} {{ x.name }} {{ x.amount | euros() }}
{% endfor %}
{% endif -%}
{% endmacro %}
|