{% load django_tables2 django_tableaux %} {% load i18n %} {% for row in table.paginated_rows %} {% block table.tbody.row %} {% if table.mobile %} {% include templates.render_row_mobile %} {% else %} {% include templates.render_row %} {% endif %} {% if forloop.last and table.infinite_scroll and table.page.number >= table.page.paginator.num_pages %} {% trans "-- End of data --" %} {% endif %} {% endblock table.tbody.row %} {% if forloop.last and table.infinite_load %} {% if table.page.number < table.page.paginator.num_pages %} {% include templates.load_more %} {% else %} {% trans "-- 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 %}