--- a/app/soc/views/helper/templatetags/forms_helpers.py Fri Mar 20 21:27:39 2009 +0000
+++ b/app/soc/views/helper/templatetags/forms_helpers.py Fri Mar 20 21:59:42 2009 +0000
@@ -40,6 +40,14 @@
register = template.Library()
+@register.inclusion_tag('soc/templatetags/_as_user.html')
+def as_user(user):
+ """Prints a user as a hyperlinked link_id.
+ """
+
+ return {'user': user}
+
+
@register.inclusion_tag('soc/templatetags/_field_as_table_row.html')
def field_as_table_row(field):
"""Prints a newforms field as a table row.