{% extends "admin/base.html" %} {% use_elements %} {% block header_scripts %} {% endblock %} {% block content %} {% htmxfragment "list" %}
{% if table_style == "preview" %}
{{ title }}
{% else %}

{{ page.paginator.count }} result{{ page.paginator.count|pluralize }}

{% endif %}
{% if table_style == "preview" %} View {{ page.paginator.count }} result{{ "s" if page.paginator.count != 1 else "" }} {% else %} {% if actions %}
{% endif %}
{% if filters %} {% endif %} {% if search_fields %}
{% endif %}
{% endif %}
{% if objects %}
{% if table_style != "preview" and actions %} {% endif %} {% for field in fields %} {% if order_by_field is defined %} {% else %} {% endif %} {% endfor %} {# A th that spans any links columns that will be added #} {% for object in objects %} {% set row_url = get_object_url(object) %} {% if table_style != "preview" and actions %} {% endif %} {% for field in fields %} {# Make every column clickable if it doesn't contain a link already #} {% endfor %} {% set object_links = get_object_links(object) %} {% if object_links %} {% endif %} {% endfor %}
{% if table_style == "preview" %}
{{ get_field_label(field) }}
{% else %} {{ get_field_label(field) }} {% if field == order_by_field %} {% if order_by_direction == "-" %} {% else %} {% endif %} {% else %} {% endif %} {% endif %}
{{ get_field_label(field) }}
{% set value = format_field_value(object, field) %} {% include get_field_value_template(object, field, value) with context %}
{% else %}

{% if search_query %} No results for "{{ search_query }}" {% else %} No items yet {% endif %}

{% endif %} {% if table_style != "preview" and page.has_other_pages() %} {% endif %} {% endhtmxfragment %} {% endblock %}