{% extends "_base.html" %} {% block content %} {# Try to find a meaningful title for the item #} {% set item_title = item.name | default(item.full_name) | default(item.plot_name) | default(item[id_column]) %} {# Define page_title for the base template #} {% set page_title = item_title|string + ' | ' + (site.title | default('Niamoto Export')) %}
{# Sidebar with hierarchical navigation #} {# Main content area #}
{# Widgets in responsive grid layout #} {% if widgets %}
{% for widget_key, widget_html in widgets.items() %} {% if 'hierarchical_nav_widget' not in widget_key %} {# Determine widget size based on type #} {% if 'interactive_map' in widget_key %} {# Map takes full width #}
{{ widget_html | safe }}
{% elif 'info_grid' in widget_key %} {# Info grid takes full width #}
{{ widget_html | safe }}
{% else %} {# All other widgets: 2 columns on desktop, 1 on mobile #}
{{ widget_html | safe }}
{% endif %} {% endif %} {% endfor %}
{% else %}

No visualizations configured for this item.

{% endif %}
{% endblock %} {# Include widget dependencies in base template blocks #} {% block styles %} {{ super() }} {% endblock %} {% block scripts %} {{ super() }} {% endblock %} {% block extra_scripts %} {% endblock %}