{% if storage_tables %}
{% set cols = [ ('dataset_name', 'Dataset', 'left'), ('table_count', 'Tables', 'right'), ('billing_model', 'Billing', 'left'), ('compression_ratio', 'Compression', 'right'), ('monthly_cost', 'Monthly Cost', 'right'), ('potential_savings', 'Potential Savings', 'right'), ] %} {% for col_key, col_label, col_align in cols %} {% set is_active = (stor_sort == col_key) %} {% set next_dir = 'asc' if (is_active and stor_direction == 'desc') else 'desc' %} {% endfor %} {% for tbl in storage_tables %} {% endfor %}
{{ col_label }} {% if is_active %} {{ '▲' if stor_direction == 'asc' else '▼' }} {% endif %}
{{ tbl.dataset_name }} {{ tbl.table_count }} {% with billing_model=tbl.billing_model %} {% include "components/storage_billing_badge.html" %} {% endwith %} {{ "%.1f"|format(tbl.compression_ratio) }}x {{ tbl.monthly_cost | format_usd }} {% if tbl.potential_savings|float > 0 %}{{ tbl.potential_savings | format_usd }}{% else %}—{% endif %}
{% if stor_pagination and stor_pagination.total_items > 0 %}

Showing {{ stor_pagination.start_index }} to {{ stor_pagination.end_index }} of {{ stor_pagination.total_items }} results

{% if stor_pagination.total_pages > 1 %} {% endif %}
{% endif %} {% else %}

No storage snapshot is available for this project yet.

{% endif %}