{% load catalogue_tags %}
{% if choices %}
- {% if category_choices %}
- <ul>
- <li class="header">{% trans "Chosen" %}:</li>
- {% for tag in category_choices %}
- <li class="active">{{ tag }} <a href="{% catalogue_url list_type choices -tag %}">X</a></li>
- {% endfor %}
- </ul>
- {% endif %}
-{% endif %}
-{% if tags %}
+ {% if category_choices %}
<ul>
- <li class="header">{% trans "Available" %}:</li>
- {% for tag in tags %}
- <li><a href="{% catalogue_url list_type choices tag %}">{{ tag }}{% if tag.count %} ({{ tag.count }}){% endif %}</a></li>
- {% endfor %}
+ {% for tag in category_choices %}
+ <li class="active">{{ tag }} <a href="{% catalogue_url list_type choices -tag %}">X</a></li>
+ {% endfor %}
</ul>
+ {% endif %}
+{% endif %}
+{% if tags %}
+ <ul>
+ {% for tag in tags %}
+ <li><a href="{% catalogue_url list_type choices tag %}">{{ tag }}{% if tag.count %} ({{ tag.count }}){% endif %}</a></li>
+ {% endfor %}
+ </ul>
{% endif %}
{% if other %}
- <ul>
- <li class="header">{% trans "Other" %}:</li>
- {% for tag in other %}
- <li class="other"><a href="{% catalogue_url list_type tag %}">{{ tag }}</a></li>
- {% endfor %}
- </ul>
+ <ul>
+ <li class="header">{% trans "Other" %}:</li>
+ {% for tag in other %}
+ <li class="other"><a href="{% catalogue_url list_type tag %}">{{ tag }}</a></li>
+ {% endfor %}
+ </ul>
{% endif %}