From 765e5de30dbc665a60e5f11465e4ea8d4c36a87d Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen Date: Mon, 15 Apr 2024 09:00:18 +0200 Subject: [PATCH] Removed minifigs table if set doesn't contain it --- templates/bootstrap_table.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/bootstrap_table.html b/templates/bootstrap_table.html index c69d69b..0fb8280 100644 --- a/templates/bootstrap_table.html +++ b/templates/bootstrap_table.html @@ -70,8 +70,9 @@ -

Minifigs

+{% if minifigs_file.figs | length > 0 %} +

Minifigs

{% for fig in minifigs_file.figs %}

{{ fig.name}}

@@ -135,7 +136,7 @@ {% endfor %} - +{% endif %}