Merge branch 'reflow'
[wolnelektury.git] / src / catalogue / templates / catalogue / inline_tag_list.html
1 {% load i18n %}
2 {% load catalogue_tags %}
3         {% if choices %}
4         {% if category_choices %}
5             <ul>
6             <li class="header">{% trans "Chosen" %}:</li>
7             {% for tag in category_choices %}
8                 <li class="active">{{ tag }} <a href="{% if gallery %}{% catalogue_url_gallery choices -tag %}{% else %}{% catalogue_url choices -tag %}{% endif %}">X</a></li>
9             {% endfor %}
10             </ul>
11         {% endif %}
12         {% if tags %}
13         <ul>
14         <li class="header">{% trans "Available" %}:</li>
15         {% for tag in tags %}
16             <li><a href="{% if gallery %}{% catalogue_url_gallery choices tag %}{% else %}{% catalogue_url choices tag %}{% endif %}">{{ tag }}{% if tag.count %}&nbsp;({{ tag.count }}){% endif %}</a></li>
17         {% endfor %}
18         </ul>
19         {% endif %}
20     {% else %}
21         {% if tags %}
22         <ul>
23         <li class="header">{% trans "Available" %}:</li>
24         {% for tag in tags %}
25             <li><a href="{% if gallery %}{{ tag.get_absolute_gallery_url }}{% else %}{{ tag.get_absolute_url }}{% endif %}">{{ tag }} {% if tag.count %}&nbsp;({{ tag.count }}){% endif %}</a></li>
26         {% endfor %}
27         </ul>
28         {% endif %}
29     {% endif %}
30     {% if other %}
31         <ul>
32         <li class="header">{% trans "Other" %}:</li>
33         {% for tag in other %}
34             <li class="other"><a href="{% if gallery %}{{ tag.get_absolute_gallery_url }}{% else %}{{ tag.get_absolute_url }}{% endif %}">{{ tag }}</a></li>
35         {% endfor %}
36     </ul>
37     {% endif %}