{% extends "django_tables2/table.html" %} {% load django_tables2 %} {% load i18n %} {% block table.thead %} {% trans "Title" %} {% for column in table.columns %} {% if column.orderable %} {{ column.header }} {% else %} {{ column.header }} {% endif %} {% endfor %} {% endblock table.thead %} {% block table.tbody.row %} {# avoid cycle for Django 1.2-1.6 compatibility #} {{ row.record }} {% for column, cell in row.items %} {% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %} {% endfor %} {% with thumbnail=row.record.thumbnail_image %} {% if thumbnail %} {% endif %} {% endwith %} {% block action-column %} {% if table.context.include_edit_link or include_edit_link %} {% endif %} {% if row.record.deletable_by_user %} {% endif %} {% endblock %} {% if row.record.description %} {{row.record.description}} {% endif %} {% endblock table.tbody.row %} {% block table.tbody.empty_text %} {{ table.empty_text }} {% endblock %} {% block pagination.cardinality %} {% endblock %}