From 38e664b733b730fbe5ae90ca4dae18fc5de1c629 Mon Sep 17 00:00:00 2001 From: Gregoo <versatile.mailbox@gmail.com> Date: Mon, 3 Feb 2025 17:38:54 +0100 Subject: [PATCH] Don't load card dataset for tiny cards --- templates/set/card.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/set/card.html b/templates/set/card.html index 126c9b3..f47a7ca 100644 --- a/templates/set/card.html +++ b/templates/set/card.html @@ -4,7 +4,7 @@ {% import 'macro/form.html' as form %} <div {% if not solo %}id="set-{{ item.fields.id }}"{% endif %} class="card mb-3 flex-fill {% if solo %}card-solo{% endif %}" - {% if not solo %} + {% if not solo and not tiny %} data-index="{{ index }}" data-number="{{ item.fields.set }}" data-name="{{ item.fields.name | lower }}" data-parts="{{ item.fields.number_of_parts }}" data-year="{{ item.fields.year }}" data-theme="{{ item.theme.name | lower }}" data-has-missing-instructions="{{ (not (item.instructions | length)) | int }}" @@ -55,7 +55,7 @@ {{ badge.total_damaged(item.fields.total_damaged, solo=solo, last=last) }} {% for owner in brickset_owners %} {{ badge.owner(item, owner, solo=solo, last=last) }} - {% endfor %} + {% endfor %} {{ badge.storage(item, brickset_storages, solo=solo, last=last) }} {% if not last %} {% if not solo %}