{% load querystring from django_tables2 %} {% load i18n %} {% load blocktrans trans from i18n %}
{% block table %} {% block table.thead %} {% for column in table.columns %} {% if column.orderable %} {% else %} {% endif %} {% endfor %} {% endblock table.thead %} {% block table.tbody %} {% for row in table.page.object_list|default:table.rows %} {# support pagination #} {% block table.tbody.row %} {% for column, cell in row.items %} {% endfor %} {% endblock table.tbody.row %} {% empty %} {% block table.tbody.empty_text %} {% trans "no results" as table_empty_text %} {% endblock table.tbody.empty_text %} {% endfor %} {% endblock table.tbody %} {% block table.tfoot %} {% endblock table.tfoot %}
{{ column.header }} {{ column.header }}
{{ cell }}
{{ table.empty_text|default:table_empty_text }}
{% endblock table %} {% if table.page and table.paginator.num_pages > 1 %} {% block pagination %} {% endblock pagination %} {% endif %}