workaround for django ticket 17111; cover in api fix
[wolnelektury.git] / wolnelektury / templates / catalogue / tag_list.html
1 {% load i18n %}
2 {% load catalogue_tags %}
3 {% if one_tag %}
4     <p>{% trans "See full category" %} <a href="{% catalogue_url one_tag %}">{{ one_tag }}</a></p>
5 {% else %}
6     <ul>
7         {% if choices %}
8         {% for tag in tags %}
9             <li><a href="{% catalogue_url choices tag %}">{{ tag }}&nbsp;({{ tag.count }})</a></li>
10         {% endfor %}
11         {% else %}
12         {% for tag in tags %}
13             <li><a href="{{ tag.get_absolute_url }}">{{ tag }}&nbsp;({{ tag.book_count }})</a></li>
14         {% endfor %}
15         {% endif %}
16     </ul>
17 {% endif %}