controls.append(post_control(_('permanent link'), reverse('answer_permanent_link', kwargs={'id' : post.id}),\r
title=_("answer permanent link"), command=True, withprompt=True))\r
\r
+ # Users should be able to award points for an answer. Users cannot award their own answers\r
+ if user != post.author and user.is_authenticated():\r
+ controls.append(post_control(_("award points"), reverse('award_points', kwargs={'user_id' : post.author.id,\r
+ 'answer_id' : post.id}), title=_("award points to %s") % post.author,\r
+ command=True, withprompt=True))\r
+\r
# The other controls are visible only to authenticated users.\r
if user.is_authenticated():\r
try:\r