BrickTracker
{% for item in config['_NAVBAR'] %} {% if item.flag and not config[item.flag] %} {% if item.endpoint == 'add.add' %} {# Add menu item with optional dropdown for Bulk/Parts #} {% set has_bulk = not config['HIDE_ADD_BULK_SET'] %} {% set has_parts = not config['HIDE_INDIVIDUAL_PARTS'] and not config['DISABLE_INDIVIDUAL_PARTS'] %} {% if has_bulk or has_parts %}
{% if item.icon %}
{% endif %} {{ item.title }}
Toggle dropdown
{% if has_bulk %}
Bulk add
{% endif %} {% if has_parts %}
Add parts
{% endif %}
{% else %} {# Just Add link, no dropdown #}
{% if item.icon %}
{% endif %} {{ item.title }}
{% endif %} {% elif item.endpoint == 'part.list' %} {# Parts menu item with optional dropdown for Individual Parts/Lots #} {% set has_individual_parts = not config.get('HIDE_INDIVIDUAL_PARTS', False) %} {% if has_individual_parts %}
{% if item.icon %}
{% endif %} {{ item.title }}
Toggle dropdown
Individual parts
Part lots
{% else %} {# Just Parts link, no dropdown #}
{% if item.icon %}
{% endif %} {{ item.title }}
{% endif %} {% else %} {# Regular menu item #}
{% if item.icon %}
{% endif %} {{ item.title }}
{% endif %} {% endif %} {% endfor %}
{% if g.login.is_enabled() %} {% if g.login.is_authenticated() %}
Authenticated
{% else %}
Read-only
{% endif %} {% endif %}
{% block main %}{% endblock %}
{% if request.endpoint == 'add.add' %} {% endif %} {% if request.endpoint == 'add.parts' %} {% endif %} {% if request.endpoint == 'minifigure.list' %} {% endif %} {% if request.endpoint == 'part.list' %} {% endif %} {% if request.endpoint == 'part.problem' %} {% endif %} {% if request.endpoint == 'set.list' %} {% endif %} {% if request.endpoint == 'set.details' %} {% endif %} {% if request.endpoint == 'part.details' %} {% endif %} {% if request.endpoint == 'individual_part.lot_details' %} {% endif %} {% if request.endpoint == 'individual_minifigure.details' %} {% endif %} {% if request.endpoint == 'statistics.overview' %} {% endif %} {% if request.endpoint == 'instructions.download' or request.endpoint == 'instructions.do_download' %} {% endif %}