Compute and display number of parts for minifigures

This commit is contained in:
2025-02-03 10:35:42 +01:00
parent 34408a1bff
commit 4cf91a6edd
10 changed files with 62 additions and 9 deletions
+4 -1
View File
@@ -1,4 +1,4 @@
{% macro header(color=false, quantity=false, missing_parts=false, damaged_parts=false, sets=false, minifigures=false) %}
{% macro header(color=false, parts=false, quantity=false, missing_parts=false, damaged_parts=false, sets=false, minifigures=false) %}
<thead>
<tr>
<th data-table-no-sort="true" class="no-sort" scope="col"><i class="ri-image-line fw-normal"></i> Image</th>
@@ -6,6 +6,9 @@
{% if color %}
<th scope="col"><i class="ri-palette-line fw-normal"></i> Color</th>
{% endif %}
{% if parts %}
<th data-table-number="true" scope="col"><i class="ri-shapes-line fw-normal"></i> Parts</th>
{% endif %}
{% if quantity %}
<th data-table-number="true" scope="col"><i class="ri-functions fw-normal"></i> Quantity</th>
{% endif %}