From 765e5de30dbc665a60e5f11465e4ea8d4c36a87d Mon Sep 17 00:00:00 2001
From: FrederikBaerentsen <frederik+gitea@baerentsen.net>
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 @@
   </table>
 </div>
 
-  <h1>Minifigs</h1>
+{% if minifigs_file.figs | length > 0 %}
 
+  <h1>Minifigs</h1>
 {% for fig in minifigs_file.figs %}
 
 <h2>{{ fig.name}}</h2>
@@ -135,7 +136,7 @@
 
 
 {% endfor %} 
-
+{% endif %}