From 0c01cdc0a04a33ec0cb340036533ec0e146d2838 Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Sat, 10 Jan 2026 12:35:04 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20don=E2=80=99t=20render=20o-booking=5F=5F?= =?UTF-8?q?classes=20if=20there=20is=20no=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/booking.html | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/layouts/partials/booking.html b/layouts/partials/booking.html index c864c8f7..5f58ae7f 100644 --- a/layouts/partials/booking.html +++ b/layouts/partials/booking.html @@ -41,23 +41,25 @@ {{- end -}} {{- end -}} -
- {{- if and (ne .reservations "nil") .classes -}} - {{ T "booking.reservation-costs" }} - {{- range $k, $v := .classes -}} -
- {{- T (print "booking.classes." $k) -}}: - {{ $v -}} -
+ {{- if or (and .classes (ne .reservations "nil")) (ne .fee "nil") -}} +
+ {{- if and (ne .reservations "nil") .classes -}} + {{ T "booking.reservation-costs" }} + {{- range $k, $v := .classes -}} +
+ {{- T (print "booking.classes." $k) -}}: + {{ $v -}} +
+ {{- end -}} {{- end -}} - {{- end -}} - {{- if ne .fee "nil" -}} - {{ T "booking.fee" }} -
{{ .fee }}
- {{- end -}} -
+ {{- if ne .fee "nil" -}} + {{ T "booking.fee" }} +
{{ .fee }}
+ {{- end -}} +
+ {{- end -}} {{- partial "icon" "keyboard_arrow_down" -}}