{% extends 'base.html' %} {% load highlight %} {% block body %}

Search

{{ form.as_table }}
 
{% if query %}

{{ page.paginator.count }} Results Page {{ page.number }} of {{ page.paginator.num_pages }}. {% 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 %}

{% for result in page.object_list %}

{{ result.object.title }}
{% highlight result.text with query css_class "text-info" html_tag "b" %}

{% empty %}

No results found.

{% endfor %} {% if page.has_previous or page.has_next %}
Page {{ page.number }} of {{ page.paginator.num_pages }}   {% 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 %}