Locatizations.
[wolnelektury.git] / src / catalogue / templates / catalogue / tag_list.html
1 {% spaceless %}
2
3   {% load i18n %}
4   {% load catalogue_tags %}
5
6   {% if one_tag %}
7     <p>{% trans "Zobacz całą kategorię" %} <a href="{% catalogue_url 'default' one_tag %}">{{ one_tag }}</a></p>
8   {% else %}
9     <ul>
10       {% if choices %}
11         {% for tag in tags %}
12           <li><a href="{% catalogue_url 'default' choices tag %}">{{ tag }}{% if tag.count %}&nbsp;({{ tag.count }}){% endif %}</a></li>
13         {% endfor %}
14       {% else %}
15         {% for tag in tags %}
16           <li><a href="{{ tag.get_absolute_url }}">{{ tag }}{% if tag.count %}&nbsp;({{ tag.count }}){% endif %}</a></li>
17         {% endfor %}
18       {% endif %}
19     </ul>
20   {% endif %}
21
22 {% endspaceless %}