From c629cbceabddd5335dc42f7a3916e9c3d1a06db8 Mon Sep 17 00:00:00 2001 From: Aamir Khan Date: Fri, 10 Aug 2012 06:39:29 +0530 Subject: Feature : Add tag to email threads --- hyperkitty/views/thread.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hyperkitty/views/thread.py') diff --git a/hyperkitty/views/thread.py b/hyperkitty/views/thread.py index c352297..4cafa37 100644 --- a/hyperkitty/views/thread.py +++ b/hyperkitty/views/thread.py @@ -69,9 +69,16 @@ def thread_index (request, mlist_fqdn, threadid): archives_length = STORE.get_archives_length(list_name) from_url = '/thread/%s/%s/' % (mlist_fqdn, threadid) tag_form = AddTagForm(initial={'from_url' : from_url}) + + try: + tags = Tag.objects.filter(threadid=threadid) + except Tag.DoesNotExist: + tags = {} c = RequestContext(request, { 'list_name' : list_name, + 'threadid' : threadid, + 'tags' : tags, 'list_address': mlist_fqdn, 'search_form': search_form, 'addtag_form': tag_form, -- cgit