From 47261ed4208399252e4823a872e7df14bd7ce21f Mon Sep 17 00:00:00 2001 From: Gregoo Date: Fri, 31 Jan 2025 14:57:16 +0100 Subject: [PATCH] Display color and print for part cards not solo --- templates/part/card.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/part/card.html b/templates/part/card.html index 547ffbc..4cb4031 100644 --- a/templates/part/card.html +++ b/templates/part/card.html @@ -6,6 +6,10 @@ {{ card.header(item, item.fields.name, solo=solo, identifier=item.fields.part, icon='shapes-line') }} {{ card.image(item, solo=solo, last=last, caption=item.fields.name, alt=item.fields.image_id, medium=true) }}
+ {% if not solo %} + {{ badge.color(item) }} + {{ badge.print(item) }} + {% endif %} {{ badge.total_sets(sets_using | length, solo=solo, last=last) }} {{ badge.total_minifigures(minifigures_using | length, solo=solo, last=last) }} {{ badge.total_quantity(item.fields.total_quantity, solo=solo, last=last) }}