entry searching works
[prawokultury.git] / migdal / templates / search / search.html
1 {% extends "base.html" %}
2 {% load url from future %}
3 {% load i18n %}
4 {% load migdal_tags %}
5
6
7 {% block "body" %}
8 <h1>{% trans "Search results" %}</h1>
9
10 {% for result in page.object_list %}
11 {% entry_short result.object %}
12 {% empty %}
13 <p>{% trans "No results found." %}</p>
14 {% endfor %}
15
16 {% if page.has_previous or page.has_next %}
17 <div>
18   {% if page.has_previous %}<a href="?q={{ query }}&amp;page={{ page.previous_page_number }}">{% endif %}{% trans "&laquo; Previous" %}{% if page.has_previous %}</a>{% endif %}
19   |
20   {% if page.has_next %}<a href="?q={{ query }}&amp;page={{ page.next_page_number }}">{% endif %}{% trans "Next &raquo;" %}{% if page.has_next %}</a>{% endif %}
21 </div>
22 {% else %}
23 {# Show some example queries to run, maybe query syntax, something else? #}
24 {% endif %}
25 {% endblock "body" %}