pytask/templates/templatetags/_as_tags.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 01 Feb 2011 15:09:44 +0530
changeset 548 53b0071346c4
parent 547 1bfa67f465b4
child 559 96e8e65a3738
permissions -rw-r--r--
comma in the display list should not appear after last tag element.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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>