{# Pagination macro for dashboard tables Usage: {{ render_pagination(pagination, rtype, rstate, sort_key, sort_order, search_query, per_page, per_page_options) }} #} {% macro render_pagination(pagination, rtype, rstate, sort_key, sort_order, search_query='', per_page=50, per_page_options=[25, 50, 100, 200]) %} {% if pagination %}
{# Pagination info #}

Showing {{ pagination.first }} - {{ pagination.last }} of {{ pagination.total }} rules

{# Items per page selector #}
{% if search_query %} {% endif %}
{% endif %} {% endmacro %}