{% load list_tags %} {% load media_tags %} {% load backend_tags %} {% spaceless %}
{% if objects_count == 0 %}
{% include 'cubane/backend/listing/empty.html' %}
{% else %}
{% include 'cubane/backend/listing/columns.html' %}
{% for obj in objects %}
{% for column in columns %}
{% with field=obj.cubane_view_edit_form|get:column.fieldname %} {% if field %} {% include 'cubane/backend/form/form_field.html' %} {% else %} {% include 'cubane/backend/listing/listing_cell.html' %} {% endif %} {% endwith %}
{% endfor %}
{% if listing_with_image and obj.is_image_or_preview and obj.has_original_image %} {% include 'cubane/backend/listing/listing_image.html' with image=obj %} {% endif %}
{% endfor %}
{% endif %} {% if controls_visible %}
{% include 'cubane/backend/listing/listing_foot.html' %}
{% endif %}
{% endspaceless %}