author | Madhusudan.C.S <madhusudancs@gmail.com> |
Fri, 04 Feb 2011 16:37:22 +0530 | |
changeset 556 | a0e57ca7cf56 |
parent 548 | 53b0071346c4 |
child 559 | 96e8e65a3738 |
permissions | -rw-r--r-- |
547
1bfa67f465b4
Define a templatetag to display list of tags and make them linked.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
1 |
<div id="tags"> |
1bfa67f465b4
Define a templatetag to display list of tags and make them linked.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
2 |
{% for tag in tags %} |
548
53b0071346c4
comma in the display list should not appear after last tag element.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
547
diff
changeset
|
3 |
<a href="{% url view_tag tag.name %}">{{ tag }}</a>{% if not forloop.last %},{% endif %} |
547
1bfa67f465b4
Define a templatetag to display list of tags and make them linked.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
4 |
{% endfor %} |
1bfa67f465b4
Define a templatetag to display list of tags and make them linked.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
5 |
</div> |