From e033dec988149c90f0d431d5fb10cf6fe3f61065 Mon Sep 17 00:00:00 2001 From: Gregoo Date: Wed, 29 Jan 2025 10:37:22 +0100 Subject: [PATCH] Use data-sort to sort colums with complex data --- templates/part/table.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/part/table.html b/templates/part/table.html index f9f8c34..87b02f6 100644 --- a/templates/part/table.html +++ b/templates/part/table.html @@ -7,7 +7,7 @@ {% for item in table_collection %} {{ table.image(item.url_for_image(), caption=item.fields.name, alt=item.fields.part, accordion=solo) }} - + {{ item.fields.name }} {% if item.fields.spare %} Spare{% endif %} {% if all %} @@ -15,7 +15,7 @@ {{ table.bricklink(item) }} {% endif %} - + {% if item.fields.color_rgb %}{% endif %} {{ item.fields.color_name }}