headers in tag list
[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             {% for tag in category_choices %}
7                 <li class="active">{{ tag }} <a href="{% if gallery %}{% catalogue_url_gallery choices -tag %}{% else %}{% catalogue_url choices -tag %}{% endif %}">X</a></li>
8             {% endfor %}
9             </ul>
10         {% endif %}
11         {% if tags %}
12         <ul>
13         {% for tag in tags %}
14             <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>
15         {% endfor %}
16         </ul>
17         {% endif %}
18     {% else %}
19         {% if tags %}
20         <ul>
21         {% for tag in tags %}
22             <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>
23         {% endfor %}
24         </ul>
25         {% endif %}
26     {% endif %}
27     {% if other %}
28         <ul>
29         <li class="header">{% trans "Other" %}:</li>
30         {% for tag in other %}
31             <li class="other"><a href="{% if gallery %}{{ tag.get_absolute_gallery_url }}{% else %}{{ tag.get_absolute_url }}{% endif %}">{{ tag }}</a></li>
32         {% endfor %}
33     </ul>
34     {% endif %}