pytask/templates/templatetags/_as_tags.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 04 Feb 2011 16:38:21 +0530
changeset 558 fd3e6f5f01bd
parent 548 53b0071346c4
child 559 96e8e65a3738
permissions -rw-r--r--
Use the form helpers templatetag module in the addreviewer template.
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>