X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/0e199a41c0f2375dbf555452bbdc46162fff8853..56ed13f0a0ea439aae31b0b172bfbb42f89bfaf8:/migdal/templates/search/search.html?ds=sidebyside

diff --git a/migdal/templates/search/search.html b/migdal/templates/search/search.html
index 6d7b9c7..84610ff 100644
--- a/migdal/templates/search/search.html
+++ b/migdal/templates/search/search.html
@@ -2,24 +2,31 @@
 {% load url from future %}
 {% load i18n %}
 {% load migdal_tags %}
+{% load events_tags %}
 
 
 {% block "body" %}
 <h1>{% trans "Search results" %}</h1>
 
 {% for result in page.object_list %}
-{% entry_short result.object %}
+  {% if result.model_name == "entry" %}
+    {% entry_short result.object %}
+  {% elif result.model_name == "event" %}
+    {% event_short result.object %}
+  {% endif %}
 {% empty %}
 <p>{% trans "No results found." %}</p>
+{# Show some example queries to run, maybe query syntax, something else? #}
 {% endfor %}
 
 {% if page.has_previous or page.has_next %}
-<div>
-  {% if page.has_previous %}<a href="?q={{ query }}&amp;page={{ page.previous_page_number }}">{% endif %}{% trans "&laquo; Previous" %}{% if page.has_previous %}</a>{% endif %}
-  |
-  {% if page.has_next %}<a href="?q={{ query }}&amp;page={{ page.next_page_number }}">{% endif %}{% trans "Next &raquo;" %}{% if page.has_next %}</a>{% endif %}
-</div>
-{% else %}
-{# Show some example queries to run, maybe query syntax, something else? #}
+<p class="prevnext">
+  {% if page.has_previous %}
+    <a class="previous_page" href="?q={{ query }}&amp;page={{ page.previous_page_number }}">{% trans "previous" %}</a>
+  {% endif %}
+  {% if page.has_next %}
+    <a class="next_page" href="?q={{ query }}&amp;page={{ page.next_page_number }}">{% trans "next" %}</a>
+  {% endif %}
 {% endif %}
+
 {% endblock "body" %}