From dbc5a8910f77980c1475cb1bfd3f9702718e4b1c Mon Sep 17 00:00:00 2001 From: olivier <> Date: Fri, 7 Mar 2008 12:39:29 +0000 Subject: [PATCH] improved search; search results are now paginated, displaying either items or collections, with a tab view --- telemeta/templates/inc/collection_list.html | 5 +- telemeta/templates/inc/mediaitem_list.html | 5 +- telemeta/templates/search_results.html | 65 ++++++++++++++--- telemeta/templatetags/telemeta_utils.py | 11 +++ telemeta/urls.py | 4 ++ telemeta/web/base.py | 79 +++++++++++---------- 6 files changed, 119 insertions(+), 50 deletions(-) diff --git a/telemeta/templates/inc/collection_list.html b/telemeta/templates/inc/collection_list.html index 64a5cc3f..699456fb 100644 --- a/telemeta/templates/inc/collection_list.html +++ b/telemeta/templates/inc/collection_list.html @@ -1,9 +1,10 @@ +{% load telemeta_utils %} {% if collections %} {% if hits %}

Records {{ first_on_page }} to {{ last_on_page }} on {{ hits }}    - {% if has_previous %} << {% endif %} - {% if has_next %} >> {% endif %} + {% if has_previous %} << {% endif %} + {% if has_next %} >> {% endif %}

{% endif %}