{% load django_tables2 navigation %}
{% if table.show_header %} {% for column in table.columns %} {% if not column.header %} {% else %} {% endif %} {% endfor %} {% endif %} {% for row in table.paginated_rows %} {% for column, cell in row.items %} {% endfor %} {% empty %} {% if table.empty_text %} {% endif %} {% endfor %} {% if table.has_footer %} {% for column in table.columns %} {% endfor %} {% endif %}
{% if column.orderable %} {{ column.header }} {% if not column.is_ordered %} {% icon "sort" classname="ml-3 size-3 shrink-0 text-gray-500 group-hover:text-primary" %} {% else %} {% if column.order_by_alias.is_descending %} {% icon "caret-down" classname="size-3" %} {% else %} {% icon "caret-up" classname="size-3" %} {% endif %} {% endif %} {% else %} {{ column.header }} {% endif %}
{{ cell }}
{{ table.empty_text }}
{{ column.footer }}
{% if table.page %} {% pagination paginator=table.paginator page=table.page %} {% endif %}