{% load i18n django_tables2 %} {% if table.page.object_list or table.rows %}
{% if column.sortable %} {% if column.order_by %} {{ column }} {% if column.order_by.is_ascending %} {% else %} {% endif %} {% else %} {{ column }} {% endif %} {% else %} {{ column }} {% endif %} | {% endfor %} {% if show_quick_look %}{% 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 %} | {% endfor %} {% if show_quick_look %}{% if row.record.get_absolute_url %} {% trans "Quick Look" %} {% endif %} | {% endif %}