changeset 25 | a6a5e45f68c8 |
24:7257b66a6766 | 25:a6a5e45f68c8 |
---|---|
1 """A Django template tag library containing forms helpers. |
|
2 """ |
|
3 |
|
4 __authors__ = [ |
|
5 '"Madhusudan.C.S" <madhusudancs@gmail.com>', |
|
6 ] |
|
7 |
|
8 |
|
9 from django import template |
|
10 |
|
11 register = template.Library() |
|
12 |
|
13 |
|
14 @register.inclusion_tag('projrev/templatetags/_as_comment.html') |
|
15 def as_comment(user): |
|
16 """Prints a user as a hyperlinked link_id. |
|
17 """ |
|
18 |
|
19 return {'user': user} |