fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
events search/realtime indexing
[prawokultury.git]
/
migdal
/
templates
/
search
/
search.html
diff --git
a/migdal/templates/search/search.html
b/migdal/templates/search/search.html
index
f38a4e6
..
1c561a4
100644
(file)
--- 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 url from future %}
{% load i18n %}
{% load migdal_tags %}
+{% load events_tags %}
{% block "body" %}
<h1>{% trans "Search results" %}</h1>
{% for result in page.object_list %}
{% block "body" %}
<h1>{% trans "Search results" %}</h1>
{% for result in page.object_list %}
-{% entry_short result %}
+ {% 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>
{% endfor %}
{% empty %}
<p>{% trans "No results found." %}</p>
{% endfor %}