{% 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 in row %} {% endfor %} {% endfor %}
{{ column.label|truncatechars:20 }} {% if column.sortable %} {% spaceless %} {% querystring "sort" column.name as asc_sort %} {% if asc_sort %}{% endif %} {% translate "sort ascending" %} {% if asc_sort %}{% endif %} {% querystring "sort" "-"|add:column.name as desc_sort %} {% if desc_sort %}{% endif %} {% translate "sort descending" %} {% if desc_sort %}{% endif %} {% endspaceless %} {% endif %}
{{ rendered }}

{% 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 %} Showing {{ total_count }} rows. {% endblocktrans %} {% endif %}

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