X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/999340c55d5402900dd013ab5ced2413cd4f22f8..773a8c2da4c355af5d81d27a4849e9548e2d8864:/migdal/templates/search/search.html?page=%7B%7B%20page.next_page_number%20%7D%7D;q=%7B%7B%20query%20%7D%7D diff --git a/migdal/templates/search/search.html b/migdal/templates/search/search.html index 6d7b9c7..31be738 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" %}

{% trans "Search results" %}

{% 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 %}

{% trans "No results found." %}

+{# Show some example queries to run, maybe query syntax, something else? #} {% endfor %} {% if page.has_previous or page.has_next %} -
- {% if page.has_previous %}{% endif %}{% trans "« Previous" %}{% if page.has_previous %}{% endif %} - | - {% if page.has_next %}{% endif %}{% trans "Next »" %}{% if page.has_next %}{% endif %} -
-{% else %} -{# Show some example queries to run, maybe query syntax, something else? #} +

+ {% if page.has_previous %} + {% trans "previous" %} + {% endif %} + {% if page.has_next %} + {% trans "next" %} + {% endif %} {% endif %} + {% endblock "body" %}