equal
deleted
inserted
replaced
38 |
38 |
39 |
39 |
40 register = template.Library() |
40 register = template.Library() |
41 |
41 |
42 |
42 |
|
43 @register.inclusion_tag('soc/templatetags/_as_user.html') |
|
44 def as_user(user): |
|
45 """Prints a user as a hyperlinked link_id. |
|
46 """ |
|
47 |
|
48 return {'user': user} |
|
49 |
|
50 |
43 @register.inclusion_tag('soc/templatetags/_field_as_table_row.html') |
51 @register.inclusion_tag('soc/templatetags/_field_as_table_row.html') |
44 def field_as_table_row(field): |
52 def field_as_table_row(field): |
45 """Prints a newforms field as a table row. |
53 """Prints a newforms field as a table row. |
46 |
54 |
47 This function actually does very little, simply passing the supplied |
55 This function actually does very little, simply passing the supplied |