]> git.openstreetmap.org Git - osqa.git/commitdiff
the contributors_info template tag should tag context and pass it
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 16 May 2012 22:57:24 +0000 (22:57 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 16 May 2012 22:57:24 +0000 (22:57 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1264 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/templatetags/node_tags.py

index 9e0482fa34e4aa44b88d948b719182ba00955eb9..be54232f8e44e35a1921ca1fb8e099bef60196c5 100644 (file)
@@ -253,12 +253,13 @@ def _comments(post, user):
 def comments(post, user):\r
     return _comments(post, user)\r
 \r
-@register.inclusion_tag("node/contributors_info.html")\r
-def contributors_info(node, verb=None):\r
+@register.inclusion_tag("node/contributors_info.html", takes_context=True)\r
+def contributors_info(context, node, verb=None):\r
     return {\r
         'node_verb': verb and verb or ((node.node_type == "question") and _("asked") or (\r
                     (node.node_type == "answer") and _("answered") or _("posted"))),\r
         'node': node,\r
+        'context' : context\r
     }\r
 \r
 @register.inclusion_tag("node/reviser_info.html")\r