diff --git a/templates/ergo.final.html.tera b/templates/ergo.final.html.tera index a996e15..4e54637 100644 --- a/templates/ergo.final.html.tera +++ b/templates/ergo.final.html.tera @@ -12,8 +12,9 @@
Dirty Thirty

-

{% for stat in thirty %}{{ stat.name }} {{ stat.dob }} {{ stat.weight }} {{ stat.sex }} Donau Linz {{ stat.result }} - {% endfor %} +
+{% for stat in thirty %}{% set names = stat.name | split(pat=" ") %}{% set lastname_index = names | length - 1 %}{% set lastname = names[lastname_index] %}{{ lastname }} {% for name in names %}{% if loop.index != lastname_index +1 %}{{ name }} {% endif %}{% endfor %} {{ stat.dob }} {{ stat.weight }} {{ stat.sex }} DLI {{ stat.result }} +{% endfor %}

@@ -21,8 +22,12 @@
Dirty Dozen

-

{% for stat in dozen %}{{ stat.name }} {{ stat.dob }} {{ stat.weight }} {{ stat.sex }} Donau Linz {{ stat.result }} - {% endfor %} +
{% for stat in dozen %} + {% set names = stat.name | split(pat=" ") %} + {% set lastname_index = names | length - 1 %} + {% set lastname = names[lastname_index] %} + {{ lastname }};{% for name in names %}{% if loop.index != lastname_index +1 %}{{ name }} {% endif %}{% endfor %};{{ stat.dob }};{{ stat.weight }};{{ stat.sex }};DLI;{{ stat.result }}
+ {% endfor %}