{% spaceless %} {% load querystring from django_tables2 %} {% load trans blocktrans from i18n %} {% if table.page %}
{% endif %} {% block table %} {% block table.thead %} {% for column in table.columns %} {% if column.orderable %} {{ column.header }} {% else %} {{ column.header }} {% 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 %} {{ cell }} {% endfor %} {% endblock table.tbody.row %} {% empty %} {% if table.empty_text %} {% block table.tbody.empty_text %} {{ table.empty_text }} {% endblock table.tbody.empty_text %} {% endif %} {% endfor %} {% endblock table.tbody %} {% block table.tfoot %} {% endblock table.tfoot %} {% endblock table %} {% if table.page %} {% block pagination %} {% endblock pagination %}
{% endif %} {% endspaceless %}