{% extends "search/base.html" %} {% load pagination_tags highlight i18n %} {% block search_form %}
{{ form.as_p }}

{% endblock search_form %} {% block refine_search %} {% if facets.fields.language %}

{% trans "Refine by" %}

{% trans "Language" %}

{% else %} {% endif %} {% endblock refine_search %} {% block search_results %} {% if query %}

{% trans "Results" %}

{% for result in page.object_list %}

{% if result.content_type == "cms.title" %} {% trans "Page" %} {% else %} {{ result.verbose_name }} {% endif %} - {{ result.title }}
{% highlight result.text with query %}

{% empty %}

{% trans "No results found." %}

{% endfor %} {% with page as page_obj %} {% paginate %} {% endwith %} {% else %} {# Show some example queries to run, maybe query syntax, something else? #} {% endif %} {% endblock search_results %}