{# Bootstrap 5 macros for a firedantic_extras.flask.pagination.PaginatedContext. Import with: {% import "firedantic_extras/macros.html" as fe_macros %} These are intentionally minimal — copy and adapt for custom styling or a different CSS framework. #} {% macro sortable_header(ctx, field, label, endpoint) %} {{ label }} {{ ctx.sort_indicator(field) }} {% endmacro %} {% macro pagination_controls(ctx, endpoint) %} {% if ctx.page.has_prev or ctx.page.has_next %} {% endif %} {% endmacro %} {% macro result_info(ctx) %}
{% if ctx.total is not none %} {{ ctx.total }} item{{ "s" if ctx.total != 1 }} found {% endif %} {% if ctx.showing_count > 0 %} · showing {{ ctx.showing_count }} on this page {% endif %}
{% endmacro %} {% macro page_size_selector(ctx, endpoint, sizes=[25, 50, 100, 200]) %} {% endmacro %}