{% load i18n %} {% load django_tables2 %}
{% block table.pagination.top %} {% endblock %} {% block table %} {% block table.thead %} {% if table.show_header %} {% for column in table.columns %} {% if column.orderable %} {% else %} {% endif %} {% endfor %} {% endif %} {% endblock %} {% block table.tbody %} {% for row in table.page.object_list|default:table.rows %} {% block table.tbody.row %} {% for column, cell in row.items %} {% if forloop.first %} {% endif %} {% endfor %} {% endblock %} {% empty %} {% block table.tbody.empty_text %} {% trans 'No data available.' as default_table_empty_text %} {% endblock %} {% endfor %} {% endblock %} {% block table.tfoot %} {% if table.has_footer %} {% for column in table.columns %} {% endfor %} {% endif %} {% endblock %}
{{ column.header }}{{ column.header }}
{% else %} {% endif %} {% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %} {% if forloop.first %} {% else %}
{{ table.empty_text|default:default_table_empty_text }}
{{ column.footer }}
{% endblock %} {% block table.pagination.bottom %} {% if table.page %} {% include 'cruditor/includes/table-pagination.html' %} {% endif %} {% endblock %}