diff --git a/templates/set/card.html b/templates/set/card.html index a327052..3585acc 100644 --- a/templates/set/card.html +++ b/templates/set/card.html @@ -11,6 +11,11 @@ data-has-minifigures="{{ (item.fields.total_minifigures > 0) | int }}" data-minifigures="{{ item.fields.total_minifigures }}" data-has-missing="{{ (item.fields.total_missing > 0) | int }}" data-missing="{{ item.fields.total_missing }}" data-has-damaged="{{ (item.fields.total_damaged > 0) | int }}" data-damaged="{{ item.fields.total_damaged }}" + data-has-storage="{{ item.fields.storage is not none | int }}" + {% if item.fields.storage is not none %} + data-storage="{{ item.fields.storage }}" + {% if item.fields.storage in brickset_storages.mapping %}data-search-storage="{{ brickset_storages.mapping[item.fields.storage].fields.name | lower }}"{% endif %} + {% endif %} {% for status in brickset_statuses %} {% with checked=item.fields[status.as_column()] %} {% if checked %} diff --git a/templates/sets.html b/templates/sets.html index dc1c10e..dc0a557 100644 --- a/templates/sets.html +++ b/templates/sets.html @@ -10,7 +10,7 @@
Search - +
@@ -57,6 +57,7 @@ + {% if brickset_storage | length %}{% endif %} {% for status in brickset_statuses %} @@ -92,6 +93,22 @@
+ {% if brickset_storages | length %} +
+ +
+ Storage + +
+
+ {% endif %}