From 378477ff838a184d667cdffe20b6b7b903bdaa52 Mon Sep 17 00:00:00 2001 From: bogo Date: Fri, 4 Oct 2024 22:17:45 +0200 Subject: [PATCH] Distance from previous marker on shootoff and ipsc --- templates/pdf_template_ipsc.html | 6 +++++- templates/pdf_template_shootoff.html | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/templates/pdf_template_ipsc.html b/templates/pdf_template_ipsc.html index e6cae02..2b79c14 100644 --- a/templates/pdf_template_ipsc.html +++ b/templates/pdf_template_ipsc.html @@ -103,7 +103,11 @@ {% if i==0 %}
{%trans%}ZERO point{%endtrans%} (El Presidente)
{% else %} -
{{ i * gap|round(1,'ceil') }}cm {%trans%}from ZERO point{%endtrans%} (El Presidente)
+
{{ i * gap|round(1,'ceil') }}cm {%trans%}from ZERO point{%endtrans%} + {% if i > 1%} + {%trans%}or{%endtrans%} {{gap|round(1,'ceil')}}cm {%trans%}from previous marker{%endtrans%} + {% endif %} + (El Presidente)
{% endif %}
diff --git a/templates/pdf_template_shootoff.html b/templates/pdf_template_shootoff.html index 2f2d199..8bb12c7 100644 --- a/templates/pdf_template_shootoff.html +++ b/templates/pdf_template_shootoff.html @@ -123,7 +123,11 @@ {% if i==0 %}
{%trans%}ZERO point{%endtrans%} (Shootoff)
{% else %} -
{{ i * gap|round(1,'ceil') }}cm {%trans%}from ZERO point{%endtrans%} (Shootoff)
+
{{ (i * gap)|round(1,'ceil') }}cm {%trans%}from ZERO point{%endtrans%} + {% if i > 1%} + {%trans%}or{%endtrans%} {{gap|round(1,'ceil')}}cm {%trans%}from previous marker{%endtrans%} + {% endif %} + (Shootoff)
{% endif %}