{% endif %}
{% if 'image' in layout.fields and label.get_image() and layout.options.image_percent %}
{% if 'name' in layout.fields %}
{{ label.display_title if 'dimensions' in layout.fields else label.name }}
{% elif 'dimensions' in layout.fields %}
{{ label.dimensions or '' }}
{% endif %}
{% if 'colour' in layout.fields and label.colour_name %}
{{ label.colour_name }}
{% endif %}
{% if 'category' in layout.fields and label.category %}
{{ label.category.full_name }}
{% endif %}
{% set meta = [] %}
{% if 'part_number' in layout.fields and label.part_number %}{% set _ = meta.append(label.part_number) %}{% endif %}
{% if 'alt_numbers' in layout.fields and label.alt_part_numbers %}{% set _ = meta.append(label.alt_part_numbers) %}{% endif %}
{% if 'category_code' in layout.fields and label.category and label.category.display_code %}{% set _ = meta.append(label.category.display_code) %}{% endif %}
{% if meta %}
{{ meta|join(' ยท ') }}
{% endif %}
{% if 'location' in layout.fields and label.location %}
{{ label.location }}
{% endif %}