aboutsummaryrefslogtreecommitdiff
path: root/templates/report/list.j2
diff options
context:
space:
mode:
authorJoris2025-01-26 17:58:57 +0100
committerJoris2025-01-26 17:58:57 +0100
commit24eeb54a6b7159964e8887ade7fa5173b50feb3a (patch)
tree91af6253df784445db9b084b02b38b37a83224e8 /templates/report/list.j2
parentc5759f348e70cf54b4bfa4cd17e1fe1828ead30a (diff)
Replace tera by minijinjamain
tera was doing the job all right, but minijinja has fewer dependencies.
Diffstat (limited to 'templates/report/list.j2')
-rw-r--r--templates/report/list.j26
1 files changed, 3 insertions, 3 deletions
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 %}