{% if choices %}
{% if category_choices %}
<ul>
- <li class="header">{% trans "Chosen" %}:</li>
{% for tag in category_choices %}
<li class="active">{{ tag }} <a href="{% if gallery %}{% catalogue_url_gallery choices -tag %}{% else %}{% catalogue_url choices -tag %}{% endif %}">X</a></li>
{% endfor %}
{% endif %}
{% if tags %}
<ul>
- <li class="header">{% trans "Available" %}:</li>
{% for tag in tags %}
<li><a href="{% if gallery %}{% catalogue_url_gallery choices tag %}{% else %}{% catalogue_url choices tag %}{% endif %}">{{ tag }}{% if tag.count %} ({{ tag.count }}){% endif %}</a></li>
{% endfor %}
{% else %}
{% if tags %}
<ul>
- <li class="header">{% trans "Available" %}:</li>
{% for tag in tags %}
<li><a href="{% if gallery %}{{ tag.get_absolute_gallery_url }}{% else %}{{ tag.get_absolute_url }}{% endif %}">{{ tag }} {% if tag.count %} ({{ tag.count }}){% endif %}</a></li>
{% endfor %}