c91c7c3d116f5e816ac0015bf01ff796a2b83bb7
[django-migdal.git] / migdal / templates / search / search.html
1 {% extends "base.html" %}
2 {% load url from future %}
3 {% load i18n %}
4 {% load migdal_tags %}
5 {#% load events_tags %#}
6
7
8 {% block body %}
9 <h1>{% trans "Search results" %}</h1>
10
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 %#}
16   {% endif %}
17 {% empty %}
18 <p>{% trans "No results found." %}</p>
19 {# Show some example queries to run, maybe query syntax, something else? #}
20 {% endfor %}
21
22 {% if page.has_previous or page.has_next %}
23 <p class="prevnext">
24   {% if page.has_previous %}
25     <a class="previous_page" href="?q={{ query }}&amp;page={{ page.previous_page_number }}">{% trans "previous" %}</a>
26   {% endif %}
27   {% if page.has_next %}
28     <a class="next_page" href="?q={{ query }}&amp;page={{ page.next_page_number }}">{% trans "next" %}</a>
29   {% endif %}
30 {% endif %}
31
32 {% endblock body %}