1 {% extends "base.html" %}
2 {% load url from future %}
9 <h1>{% trans "Search results" %}</h1>
11 {% for result in page.object_list %}
12 {% if result.model_name == "entry" %}
13 {% entry_short result.object %}
14 {% elif result.model_name == "event" %}
15 {% event_short result.object %}
18 <p>{% trans "No results found." %}</p>
19 {# Show some example queries to run, maybe query syntax, something else? #}
22 {% if page.has_previous or page.has_next %}
24 {% if page.has_previous %}
25 <a class="previous_page" href="?q={{ query }}&page={{ page.previous_page_number }}">{% trans "previous" %}</a>
27 {% if page.has_next %}
28 <a class="next_page" href="?q={{ query }}&page={{ page.next_page_number }}">{% trans "next" %}</a>