comma in the display list should not appear after last tag element.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Tue, 01 Feb 2011 15:09:44 +0530
changeset 548 53b0071346c4
parent 547 1bfa67f465b4
child 549 3e8fc2ba0bde
comma in the display list should not appear after last tag element.
pytask/templates/templatetags/_as_tags.html
--- a/pytask/templates/templatetags/_as_tags.html	Tue Feb 01 15:03:24 2011 +0530
+++ b/pytask/templates/templatetags/_as_tags.html	Tue Feb 01 15:09:44 2011 +0530
@@ -1,5 +1,5 @@
 <div id="tags">
   {% for tag in tags %}
-    <a href="{% url view_tag tag.name %}">{{ tag }}</a>,
+    <a href="{% url view_tag tag.name %}">{{ tag }}</a>{% if not forloop.last %},{% endif %}
   {% endfor %}
 </div>
\ No newline at end of file