{% load crispy_forms_tags i18n %} {% block content %}
{% crispy form %} {% if query %}

Results

{% for result in page.object_list %}

{% if result.content_type == "media.image" %} {{ result.object }} {% else %} {{ result.object.title }} {% endif %}

{% empty %}

No results found.

{% endfor %} {% if page.has_previous or page.has_next %}
{% if page.has_previous %}{% endif %}« {% trans 'Previous' %}{% if page.has_previous %}{% endif %} | {% if page.has_next %}{% endif %}{% trans 'Next' %} »{% if page.has_next %}{% endif %}
{% endif %} {% else %} {# Show some example queries to run, maybe query syntax, something else? #} {% endif %}
{% endblock %}