From 246ef1b059a038ca3f1f77072cfc0966a257d543 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 7 Jul 2025 08:57:30 +0200 Subject: [PATCH] Added backup logik for missing images --- app/templates/moduls/card.html.j2 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/templates/moduls/card.html.j2 b/app/templates/moduls/card.html.j2 index 3541811..4725340 100644 --- a/app/templates/moduls/card.html.j2 +++ b/app/templates/moduls/card.html.j2 @@ -2,10 +2,15 @@
- {% if card.icon.class %} + {# Prioritize image, fallback to icon via onerror #} + {% if card.icon.cache %} + {{ card.title }} + {% if card.icon.class %} + + {% endif %} + {% elif card.icon.class %} - {% else %} - {{ card.title }} {% endif %}