X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/ce7f059d284616e5bf6f62306c1def5d9aae5ab4..fa8909f95f314f1bea5f52b81381304c68a75417:/migdal/templates/search/search.html?ds=sidebyside diff --git a/migdal/templates/search/search.html b/migdal/templates/search/search.html index 6d7b9c7..1c561a4 100644 --- a/migdal/templates/search/search.html +++ b/migdal/templates/search/search.html @@ -2,13 +2,18 @@ {% 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." %}

{% endfor %}