fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
almost there
[wolnelektury.git]
/
wolnelektury
/
templates
/
newsearch
/
search.html
diff --git
a/wolnelektury/templates/newsearch/search.html
b/wolnelektury/templates/newsearch/search.html
index
af36b59
..
ad7fd15
100644
(file)
--- a/
wolnelektury/templates/newsearch/search.html
+++ b/
wolnelektury/templates/newsearch/search.html
@@
-27,10
+27,14
@@
<ol>
{% for result in results %}
<li>
<ol>
{% for result in results %}
<li>
- <p><a href="{{result.book.get_absolute_url}}">{{result.book.pretty_title}}</a> (id: {{result.book
.
id}}, score: {{result.score}})</p>
+ <p><a href="{{result.book.get_absolute_url}}">{{result.book.pretty_title}}</a> (id: {{result.book
_
id}}, score: {{result.score}})</p>
<ul>
<ul>
- {% for snippet in result.snippets %}
- <li>{{snippet|safe}}</li>
+ {% for hit in result.hits %}
+ <li>
+ {% for snip in hit.3.snippets %}
+ {{snip}}<br/>
+ {% endfor %}
+ </li>
{% endfor %}
{% for part in result.parts %}
{% endfor %}
{% for part in result.parts %}