From aa2b8c9faeaebf9e179d1b86ac99bad4ccc700ba Mon Sep 17 00:00:00 2001 From: Simon Martens Date: Tue, 24 Jun 2025 18:38:05 +0200 Subject: [PATCH] Bugfix Letter 1 --- views/routes/components/_letterhead.gohtml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/views/routes/components/_letterhead.gohtml b/views/routes/components/_letterhead.gohtml index 1dc885d..f9296da 100644 --- a/views/routes/components/_letterhead.gohtml +++ b/views/routes/components/_letterhead.gohtml @@ -51,10 +51,9 @@ {{- if $sr.Received -}}
{{- range $i, $p := $sr.Received.Persons -}} - {{- if and $i (eq $i (Minus (len $sr.Received.Persons) 1)) -}} + {{- if and $i (eq $i (Minus (len $sr.Received.Persons) 1)) }} und - {{- end -}} - {{- if $i -}} + {{- else if $i -}} , {{- end -}} {{- $person := Person $p.Reference }} @@ -63,10 +62,9 @@ {{ if and $sr.Received.Places (len $sr.Received.Places) }} {{- range $i, $p := $sr.Received.Places -}} {{- $place := Place $p.Reference }} - {{- if and $i (eq $i (Minus (len $sr.Received.Places) 1)) -}} + {{- if and $i (eq $i (Minus (len $sr.Received.Places) 1)) }} und - {{- end -}} - {{- if $i -}} + {{ else if $i -}} , {{- end -}} {{- if eq $i 0 -}}