{% extends 'base.html' %} {% load i18n %} {% load search %} {% block search_form %} {% with sidebar=1 sidebar_toggle_icon='fa-filter' search_form_class=' d-md-none' %} {% include 'includes/search_form.html' %} {% endwith %} {% endblock %} {% block sidebar %} {% include 'search/facets.html' %} {% endblock %} {% block content %} {% trans 'Search' %} {% if query and object_list %} {% blocktrans with count=page_obj.paginator.count %}{{ count }} results sorted by relevance.{% endblocktrans %} {% for result in object_list %} {{ result.object.get_title }} ({% trans result.object.get_type %}) {% autoescape off %} {{ result|get_search_snippet:query }} {% endautoescape %} {% endfor %} {% else %} {% include 'search/empty_results.html' %} {% endif %} {% if query and object_list %} {% include 'pagination_list_view.html' %} {% endif %} {% endblock %}
{% autoescape off %} {{ result|get_search_snippet:query }} {% endautoescape %}