From 785a4b48e6f9e9a93ddc056290afda10ff5407f1 Mon Sep 17 00:00:00 2001 From: bogo Date: Fri, 4 Oct 2024 22:17:45 +0200 Subject: [PATCH] Init google analytics --- templates/base.html | 11 +++++++++++ templates/pdf_template_ipsc.html | 6 +++++- templates/pdf_template_shootoff.html | 6 +++++- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/templates/base.html b/templates/base.html index 3f0680c..482b7ec 100644 --- a/templates/base.html +++ b/templates/base.html @@ -25,6 +25,17 @@ + + + + +

Steel Training

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 %}