{% macro list(resource, action, xs) -%}

{% if xs -%}

  {% set s = xs | length | pluralize -%}

  {{ xs | length }} {{ resource }}{{ s }} {{ action }}{{ s }} :

  {% for x in xs -%}
    - {{ x.date }} {{ x.name }} {{ x.amount | euros() }}
  {% endfor %}
{% endif -%}

{% endmacro paging %}