{% extends "base.html" %} {% set active_nav = "cellar" %} {% block title %}Wine Catalogue — Cellarbrain Explorer{% endblock %} {% block page_title %}Wine Catalogue{% endblock %} {% block content %}
{% set base_params = "q=" ~ q ~ "&category=" ~ category ~ "®ion=" ~ region ~ "&status=" ~ status ~ "&hide_empty=" ~ ("1" if hide_empty else "0") %} {% for col_id, col_label in [("wine_name", "Wine"), ("vintage", "Vintage"), ("winery_name", "Winery"), ("region", "Region"), ("category", "Category"), ("bottles_stored", "Bottles"), ("price", "Price"), ("drinking_status", "Status")] %} {% endfor %} {% include "partials/wine_rows.html" %}
{{ col_label }}{% if sort == col_id %}{{ " ▼" if desc else " ▲" }}{% endif %}
{{ total }} wine{{ "s" if total != 1 }} found
{% if page > 1 %} ← Prev {% endif %} Page {{ page }} of {{ total_pages }} {% if page < total_pages %} Next → {% endif %}
{{ quick_stats.wines }}
Wines
{{ quick_stats.bottles }}
Bottles
CHF {{ "{:,.0f}".format(quick_stats.value or 0) }}
Total Value
{{ quick_stats.ready }}
Ready to Drink
{% include "partials/wine_of_the_day.html" %} {% include "partials/consumption_velocity.html" %} {% endblock %}