{% extends 'base.html' %} {% load bootstrap4 %} {% block content %}

Search

{% bootstrap_form form %}
 
{% if query %}

Results

{% for result in page.object_list %}

{{ result.object.name }}

{% load highlight %} {% highlight result.text with query html_tag "mark" %}

{% empty %}

No results found.

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