Django 1.8 and other updates.
[wolnelektury.git] / apps / catalogue / templates / catalogue / tag_list.html
1 {% spaceless %}
2
3 {% load i18n %}
4 {% load catalogue_tags %}
5 {% if one_tag %}
6     <p>{% trans "See full category" %} <a href="{% catalogue_url one_tag %}">{{ one_tag }}</a></p>
7 {% else %}
8     <ul>
9         {% if choices %}
10         {% for tag in tags %}
11             <li><a href="{% catalogue_url choices tag %}">{{ tag }}{% if tag.count %}&nbsp;({{ tag.count }}){% endif %}</a></li>
12         {% endfor %}
13         {% else %}
14         {% for tag in tags %}
15             <li><a href="{{ tag.get_absolute_url }}">{{ tag }}{% if tag.count %}&nbsp;({{ tag.count }}){% endif %}</a></li>
16         {% endfor %}
17         {% endif %}
18     </ul>
19 {% endif %}
20
21 {% endspaceless %}