diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-13 00:42:56 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-13 00:42:56 +0200 |
commit | cc92bc3d4e72c8e50e0478ada930425e14701307 (patch) | |
tree | 05d242d7547c5e80176494c918c879a64e168dc3 /pyaggr3g470r/templates | |
parent | HTML export now working on Heroku. (diff) | |
download | newspipe-cc92bc3d4e72c8e50e0478ada930425e14701307.tar.gz newspipe-cc92bc3d4e72c8e50e0478ada930425e14701307.tar.bz2 newspipe-cc92bc3d4e72c8e50e0478ada930425e14701307.zip |
Whoosh search is now working (but not on Heroku).
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r-- | pyaggr3g470r/templates/search.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/templates/search.html b/pyaggr3g470r/templates/search.html index e589ad9a..36076b14 100644 --- a/pyaggr3g470r/templates/search.html +++ b/pyaggr3g470r/templates/search.html @@ -18,7 +18,7 @@ <a href="/edit_feed/{{ feed.oid }}"><i class="glyphicon glyphicon-edit" title="Edit this feed"></i></a> </div> </div> - {% for number in range(0, feed.articles|length-(feed.articles|length % 3), 3) %} + {% for number in range(0, feed.articles.all()|length-(feed.articles.all()|length % 3), 3) %} <div class="row"> {% for n in range(number, number+3) %} <div class="col-xs-6 col-sm-4 col-md-4"> @@ -30,9 +30,9 @@ {% endfor %} </div> {% endfor %} - {% if feed.articles|length % 3 != 0 %} + {% if feed.articles.all()|length % 3 != 0 %} <div class="row"> - {% for n in range(feed.articles|length-(feed.articles|length % 3), feed.articles|length) %} + {% for n in range(feed.articles.all()|length-(feed.articles.all()|length % 3), feed.articles.all()|length) %} <div class="col-xs-6 col-sm-4 col-md-4"> {% if feed.articles[n].readed %}<h3>{% else %}<h1>{% endif %} <a href="/article/{{ feed.articles[n].id }}">{{ feed.articles[n].title|safe }}</a> |