]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/templatetags/node_tags.py
the contributors_info template tag should tag context and pass it
[osqa.git] / 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