{% spaceless %} {% load django_tables2 %} {% load i18n %} {% if table.page %}
{% endif %} {% block table %} {% nospaceless %} {% 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 %} {% if table.empty_text %} {% block table.tbody.empty_text %} {% endblock table.tbody.empty_text %} {% endif %} {% endfor %} {% endblock table.tbody %} {% block table.tfoot %} {% endblock table.tfoot %} {% endnospaceless %}
{{ column.header }}{{ column.header }}
{% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %}
{{ table.empty_text }}
{% endblock table %} {% block table_finished %} {% endblock table_finished %} {% if table.page %} {% with table.page.paginator.count as total %} {% with table.page.object_list|length as count %} {% block pagination %} {% endblock pagination %} {% endwith %} {% endwith %}
{% endif %} {% endspaceless %}