{% import 'macro/badge.html' as badge %} {% import 'macro/card.html' as card %} {% import 'macro/form.html' as form %}
{{ item.fields.name }} ({{ item.fields.color_name }})
{{ badge.quantity(item.fields.quantity, solo=false, last=false) }} {% if item.fields.missing > 0 %} {{ badge.total_missing(item.fields.missing, solo=false, last=false) }} {% endif %} {% if item.fields.damaged > 0 %} {{ badge.total_damaged(item.fields.damaged, solo=false, last=false) }} {% endif %} {% for owner in brickset_owners %} {{ badge.owner(item, owner, solo=false, last=false) }} {% endfor %} {% for tag in brickset_tags %} {{ badge.tag(item, tag, solo=false, last=false) }} {% endfor %} {% if item.fields.storage %} {{ badge.storage(item, brickset_storages, solo=false, last=false) }} {% endif %} {% if item.fields.purchase_location %} {{ badge.purchase_location(item, brickset_purchase_locations, solo=false, last=false) }} {% endif %} {% if item.fields.description %} {{ item.fields.description[:config['DESCRIPTION_BADGE_MAX_LENGTH']] }}{% if item.fields.description | length > config['DESCRIPTION_BADGE_MAX_LENGTH'] %}...{% endif %} {% endif %}