kotti/templates/view/tags.pt
<ul class="list-inline"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="Kotti"
tal:define="tags context.tags"
tal:condition="len(tags) > 0">
<span tal:omit-tag="">
<small tal:omit-tag="" i18n:translate="">Tagged with:</small>
</span>
<tal:repeat tal:repeat="tag tags">
<li tal:define="first repeat.tag.start; last repeat.tag.end"
class="${last and 'active' or None}">
<a class="label label-default"
href="${api.url(api.root)}@@search-tag?tag=${tag}">${tag}</a>
</li>
</tal:repeat>
</ul>