From 946b1802edd31db493641a9a04111c2e4141f2cf Mon Sep 17 00:00:00 2001
From: Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com>
Date: Sun, 17 Oct 2021 20:33:33 +0200
Subject: update how the ubo address is displayed
---
templates/extract-actual.html | 2 +-
templates/extract.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'templates')
diff --git a/templates/extract-actual.html b/templates/extract-actual.html
index 691dae3..9a82bff 100644
--- a/templates/extract-actual.html
+++ b/templates/extract-actual.html
@@ -499,7 +499,7 @@
{% for i in range (ubo_notes|length) %}
|
- {{ubo_notes[i].jmeno }} {{ubo_notes[i].jmeno.adresa }}
+ | {{ubo_notes[i].jmeno }}{% if ubo_notes[i].jmeno.adresa|length > 0 %}, {{ubo_notes[i].jmeno.adresa }} {% endif %}
{% if ubo_notes[i].postaveni != "0" %} {{ ubo_notes[i].postaveni }}{% endif %}
{% if ubo_notes[i].koncovyPrijemceText != "0" %} {{ ubo_notes[i].koncovyPrijemceText }}{% endif %}
|
diff --git a/templates/extract.html b/templates/extract.html
index 9eb1985..b3015d0 100644
--- a/templates/extract.html
+++ b/templates/extract.html
@@ -606,7 +606,7 @@
{% set underlne_style_open = "" %}
{% set underlne_style_close = "" %}
{% endif %}
- {{ underlne_style_open|safe }} {{row.ubo[i].jmeno }} {{row.ubo[i].jmeno.adresa}}
+ | {{ underlne_style_open|safe }} {{row.ubo[i].jmeno }}{% if row.ubo[i].jmeno.adresa|length > 0 %}, {{row.ubo[i].jmeno.adresa }} {% endif %}
{% if row.ubo[i].postaveni != "0" %} {{row.ubo[i].postaveni }}{% endif %}
{% if row.ubo[i].koncovyPrijemceText != "0" %} {{row.ubo[i].koncovyPrijemceText }}{% endif %} {{ underlne_style_close|safe }} |
{{ underlne_style_open|safe }} Zapsáno: {{ row.ubo[i].zapis_datum }} {% if row.ubo[i].vymaz_datum != 0 %} Vymazáno: {{ row.ubo[i].vymaz_datum }} {% endif %} {{ underlne_style_close|safe }} |
--
cgit