{% load i18n l10n datashow_tags humanize %}
{% if filter_form.has_filter %}
{% include "datashow/_filterform.html" with form=filter_form %}
{% if filter_form.is_filtered %} {% translate "Reset" %} {% endif %}
{% endif %} {% if facets %}
{% for facet in facets %}
{{ facet.column.label }}
{% endfor %}
{% endif %}
{% for column, css in columns %} {% endfor %} {% for row in object_list %} {% for val, css, rendered, column in row %} {% endfor %} {% endfor %}
{{ column.label }} {% if column.sortable %} {% spaceless %} {% sort_queryparam column.name ascending=True as asc_sort %} {% if asc_sort %} {% translate "sort ascending" %} {% else %} {% translate "remove sort ascending" %} {% endif %} {% sort_queryparam column.name ascending=False as desc_sort %} {% if desc_sort %} {% translate "sort descending" %} {% else %} {% translate "remove sort descending" %} {% endif %} {% endspaceless %} {% endif %}
{{ rendered }}
{% block datashow_table_footer %}

{% if filter_form.is_filtered %} {% blocktrans with total_count=table.row_count|intcomma count=paginator.count|intcomma %} Showing {{ count }} of {{ total_count }} rows. {% endblocktrans %} {% else %} {% blocktrans with total_count=table.row_count|intcomma %} Total of {{ total_count }} rows. {% endblocktrans %} {% endif %}

{% if paginator.num_pages > 1 %}
{% include "datashow/pagination.html" %}
{% endif %}
{% endblock datashow_table_footer %}