From 24eeb54a6b7159964e8887ade7fa5173b50feb3a Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 26 Jan 2025 17:58:57 +0100 Subject: Replace tera by minijinja tera was doing the job all right, but minijinja has fewer dependencies. --- templates/report/list.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/report/list.j2') diff --git a/templates/report/list.j2 b/templates/report/list.j2 index ef53244..d683879 100644 --- a/templates/report/list.j2 +++ b/templates/report/list.j2 @@ -2,13 +2,13 @@ {% if xs -%} - {% set s = xs | length | pluralize -%} + {% set l = xs | length %} - {{ xs | length }} {{ resource }}{{ s }} {{ action }}{{ s }} : + {{ xs | length }} {{ pluralize(l, resource) }} {{ pluralize(l, action) }} : {% for x in xs -%} - {{ x.date }} {{ x.name }} {{ x.amount | euros() }} {% endfor %} {% endif -%} -{% endmacro paging %} +{% endmacro %} -- cgit v1.2.3