{% load i18n django_tables2 %} {% if table.page.object_list or table.rows %} {% for column in table.columns %} {% endfor %} {% if show_quick_look %} {% endif %} {% block table_content %} {% for row in table.page.object_list|default:table.rows %} {% for colname, value in row.items %} {% endfor %} {% if show_quick_look %} {% endif %} {% endfor %} {% endblock %}
{% if column.sortable %} {% if column.order_by %} {{ column }} {% if column.order_by.is_ascending %}
{% else %}
{% endif %}
{% else %} {{ column }} {% endif %} {% else %} {{ column }} {% endif %}
{% if forloop.first and row.record.get_absolute_url %} {{ value }} {% else %} {% with value.get_absolute_url as absolute_url %} {% if absolute_url %} {{ value }} {% else %} {{ value }} {% endif %} {% endwith %} {% endif %} {% if row.record.get_absolute_url %} {% trans "Quick Look" %} {% endif %}
{% if table.paginator.num_pages > 1 %} {% endif %} {% endif %}