{% load django_tables2 django_tableaux %} {% load i18n %} {% for row in table.paginated_rows %} {% block table.tbody.row %} {% if forloop.last and table.infinite_scroll and table.page.number < table.page.paginator.num_pages %} {% else %} {% endif %} {% for column, cell in row.items %} {% if column.name in table.columns_visible %} {% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }} {% else %} {{ cell|unlocalize }}{% endif %} {% endif %} {% endif %} {% endfor %} {% if table.mobile %} {% for column, cell in row.items %} {% if column.name in table.columns_optional %} {{ column }} {% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }} {% else %} {{ cell|unlocalize }}{% endif %} {% endif %} {% endif %} {% endfor %} {% endif %} {% if forloop.last and table.infinite_scroll and table.page.number >= table.page.paginator.num_pages %} -- End of data -- {% endif %} {% endblock table.tbody.row %} {% if forloop.last and table.infinite_load %} {% if table.page.number < table.page.paginator.num_pages %} {% else %} -- End of data -- {% endif %} {% endif %} {% empty %} {% if table.empty_text %} {% block table.tbody.empty_text %} {{ table.empty_text }} {% endblock table.tbody.empty_text %} {% endif %} {% endfor %}