From 0981c73411f3d34d258bc4fd47606d6da41077b8 Mon Sep 17 00:00:00 2001 From: Aamir Khan Date: Fri, 10 Aug 2012 07:06:14 +0530 Subject: Feature : Add tag to email threads --- hyperkitty/templates/search.html | 4 ++-- hyperkitty/templates/threads/right_col.html | 2 +- hyperkitty/urls.py | 2 +- hyperkitty/views/list.py | 7 ++++--- 4 files changed, 8 insertions(+), 7 deletions(-) (limited to 'hyperkitty') diff --git a/hyperkitty/templates/search.html b/hyperkitty/templates/search.html index e0e4f8c..559eba4 100644 --- a/hyperkitty/templates/search.html +++ b/hyperkitty/templates/search.html @@ -14,7 +14,7 @@
@@ -24,7 +24,7 @@
{% else %} {% endif %}
diff --git a/hyperkitty/templates/threads/right_col.html b/hyperkitty/templates/threads/right_col.html index 71ec1b6..78f0621 100644 --- a/hyperkitty/templates/threads/right_col.html +++ b/hyperkitty/templates/threads/right_col.html @@ -31,7 +31,7 @@ diff --git a/hyperkitty/urls.py b/hyperkitty/urls.py index a1a711a..13a6f3f 100644 --- a/hyperkitty/urls.py +++ b/hyperkitty/urls.py @@ -43,7 +43,7 @@ urlpatterns = patterns('hyperkitty.views', url(r'^tag/(?P.*@.*)\/(?P.*)\/(?P\d+)/$', 'list.search_tag'), url(r'^tag/(?P.*@.*)\/(?P.*)/$', - 'list.search_tag'), + 'list.search_tag', name='search_tag'), # Search # If page number is present in URL diff --git a/hyperkitty/views/list.py b/hyperkitty/views/list.py index 843cd97..33ea992 100644 --- a/hyperkitty/views/list.py +++ b/hyperkitty/views/list.py @@ -290,11 +290,12 @@ def search_tag(request, mlist_fqdn, tag=None, page=1): thread_ids = Tag.objects.filter(tag=tag) except Tag.DoesNotExist: thread_ids = {} - + + threads = [] for thread in thread_ids: threads = STORE.get_thread(list_name, thread.threadid) - - + threads = threads[0:1] + return _search_results_page(request, mlist_fqdn, threads, 'Tag search', page, limit=50) -- cgit