From: jordan Date: Sun, 27 Mar 2011 20:34:16 +0000 (+0000) Subject: OSQA-621, adding a separate rss link for the question_search view. X-Git-Tag: live~393 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/a949e58d633587380391eb698f1a253e34e736df?ds=sidebyside OSQA-621, adding a separate rss link for the question_search view. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@903 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/views/readers.py b/forum/views/readers.py index 8d2cd85..cad081a 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -213,11 +213,14 @@ def question_search(request, keywords): else: paginator_context = None + feed_url = mark_safe(escape(request.path + "?type=rss&q=" + keywords)) + return question_list(request, initial, _("questions matching '%(keywords)s'") % {'keywords': keywords}, None, _("questions matching '%(keywords)s'") % {'keywords': keywords}, - paginator_context=paginator_context) + paginator_context=paginator_context, + feed_url=feed_url) @decorators.render('tags.html', 'tags', _('tags'), weight=100)