%def name="row(tile, tag)">
${_("created %s") % h.relative_time(tag.create_time)|n}
%if c.instance:
· ${_("used %s times") % len(tag)}
%endif
%def>
<%def name="cloud(tags, plain, show_count, link_more)">
%for (tag, count, size) in tags:
${h.tag.link(tag, count=0 if not show_count else count, size=size, plain=plain)|n}
%endfor
%if link_more:
%endif
%def>
<%def name="sidebar(delegateable)">
${_("Tags")}
<% tagn = 0 %>
%for (tag, count) in delegateable.tags:
- ${h.tag.link(tag, count)|n}
%if c.user:
<% has = False %>
%for tagging in delegateable.taggings:
%if not has and tagging.tag == tag and tagging.creator == c.user and can.tag.delete(tagging):
<% has = True %>
%endif
%endfor
%if not has:
%endif
%endif
%if can.instance.edit(c.instance):
${_("delete")}
%endif
<% tagn = tagn + 1 %>
%endfor
%if len(delegateable.tags) > 5 or can.tag.create():
-
%if len(delegateable.tags) > 5:
${_("show more")}
·
%endif
%if can.tag.create():
${_("add tags...")}
%endif
%endif
%if can.tag.create():
%endif
%def>