#8 tagged object list for audiobooks
[wolnelektury.git] / src / catalogue / templates / catalogue / inline_tag_list.html
1 {% load i18n %}
2 {% load catalogue_tags %}
3
4 {% if choices %}
5     {% if category_choices %}
6         <ul>
7         <li class="header">{% trans "Chosen" %}:</li>
8         {% for tag in category_choices %}
9             <li class="active">{{ tag }} <a href="{% catalogue_url list_type choices -tag %}">X</a></li>
10         {% endfor %}
11         </ul>
12     {% endif %}
13 {% endif %}
14 {% if tags %}
15     <ul>
16         <li class="header">{% trans "Available" %}:</li>
17         {% for tag in tags %}
18             <li><a href="{% catalogue_url list_type choices tag %}">{{ tag }}{% if tag.count %}&nbsp;({{ tag.count }}){% endif %}</a></li>
19         {% endfor %}
20     </ul>
21 {% endif %}
22 {% if other %}
23     <ul>
24         <li class="header">{% trans "Other" %}:</li>
25         {% for tag in other %}
26             <li class="other"><a href="{% catalogue_url list_type tag %}">{{ tag }}</a></li>
27         {% endfor %}
28     </ul>
29 {% endif %}