{% macro header(image=true, color=false, parts=false, quantity=false, missing=true, missing_parts=false, damaged=true, damaged_parts=false, sets=false, minifigures=false, checked=false, hamburger_menu=false, accordion_id='') %}
{% if image %}
{% endmacro %}
{% macro bricklink(item) %}
{% set url=item.url_for_bricklink() %}
{% if url %}
Bricklink
{% endif %}
{% endmacro %}
{% macro image(image, caption=none, alt=none, accordion=false) %}
Image
{% endif %}
Name
{% if color %}
Color
{% endif %}
{% if parts %}
Parts
{% endif %}
{% if quantity %}
Quantity
{% endif %}
{% if missing and not config['HIDE_TABLE_MISSING_PARTS'] %}
Missing{% if missing_parts %} parts{% endif %}
{% endif %}
{% if damaged and not config['HIDE_TABLE_DAMAGED_PARTS'] %}
Damaged{% if damaged_parts %} parts{% endif %}
{% endif %}
{% if sets %}
Sets
{% endif %}
{% if minifigures %}
Minifigures
{% endif %}
{% if checked and not config['HIDE_TABLE_CHECKED_PARTS'] %}
Checked
{% endif %}
{% if hamburger_menu and g.login.is_authenticated() %}
{% set show_missing_menu = not config['HIDE_TABLE_MISSING_PARTS'] %}
{% set show_checked_menu = not config['HIDE_TABLE_CHECKED_PARTS'] %}
{% set show_quick_add = not config['DISABLE_QUICK_ADD_INDIVIDUAL_PARTS'] and not config['HIDE_INDIVIDUAL_PARTS'] %}
{% if show_missing_menu or show_checked_menu or show_quick_add %}
{% endif %}
{% endif %}