From edbf4d23d35be21bf766fc7fa59037d699eea5dc Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 22 Jan 2025 13:22:28 +0100 Subject: [PATCH] Refactor templates. --- templates/_base.tmpl | 2 ++ templates/_macros.tmpl | 16 ++++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/templates/_base.tmpl b/templates/_base.tmpl index 217af12..74ed6b1 100644 --- a/templates/_base.tmpl +++ b/templates/_base.tmpl @@ -6,6 +6,8 @@ diff --git a/templates/_macros.tmpl b/templates/_macros.tmpl index cabb83c..d1f6cf2 100644 --- a/templates/_macros.tmpl +++ b/templates/_macros.tmpl @@ -21,14 +21,16 @@ td.curr { text-align: center; } {% endif %} {% endif %} {% if raw %} + {% if dat_line.is_intro %} - {{dat_line.raw_nbsp}} + {{dat_line.raw_nbsp}} {% else %} - {{dat_line.raw_nbsp}} + {{dat_line.raw_nbsp}} {% endif %} + {% else %} {% if dat_line.is_intro %} - {{dat_line.code}} + {{dat_line.code}} {% elif not dat_line.error %} {{dat_line.booking_line.amount_short}} {{dat_line.booking_line.currency|truncate(4,true,"…")}} @@ -40,7 +42,13 @@ td.curr { text-align: center; } {% endif %} {% if dat_line.error and not raw %} - {% if not single %}{% endif %}{{dat_line.error}} + + {% if not single %} + + {% endif %} + {{dat_line.error}} + + {% endif %} {% endfor %} -- 2.30.2