{% 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 }})
{{ card.image(item, solo=false, last=false, caption=item.fields.name, alt=item.fields.part, medium=false) }}
{# Always show quantity first #} {{ badge.quantity(item.fields.quantity, solo=false, last=false) }} {# Render all other badges in configured order #} {{ badge.render_ordered_badges(item, brickset_tags, brickset_owners, brickset_storages, brickset_purchase_locations, solo=false, last=false, context='grid') }} {# Description badge at end if exists #} {% if item.fields.description %} {{ item.fields.description[:config.get('DESCRIPTION_BADGE_MAX_LENGTH', 50)] }}{% if item.fields.description | length > config.get('DESCRIPTION_BADGE_MAX_LENGTH', 50) %}...{% endif %} {% endif %}
{% if g.login.is_authenticated() %} {% endif %}