rearrangements: new core app, templates in apps, split settings;
[wolnelektury.git] / apps / catalogue / templates / catalogue / tag_list.html
diff --git a/apps/catalogue/templates/catalogue/tag_list.html b/apps/catalogue/templates/catalogue/tag_list.html
new file mode 100644 (file)
index 0000000..a5ce71e
--- /dev/null
@@ -0,0 +1,17 @@
+{% load i18n %}
+{% load catalogue_tags %}
+{% if one_tag %}
+    <p>{% trans "See full category" %} <a href="{% catalogue_url one_tag %}">{{ one_tag }}</a></p>
+{% else %}
+    <ul>
+       {% if choices %}
+        {% for tag in tags %}
+            <li><a href="{% catalogue_url choices tag %}">{{ tag }}&nbsp;({{ tag.count }})</a></li>
+        {% endfor %}
+        {% else %}
+        {% for tag in tags %}
+            <li><a href="{{ tag.get_absolute_url }}">{{ tag }}&nbsp;({{ tag.book_count }})</a></li>
+        {% endfor %}
+        {% endif %}
+    </ul>
+{% endif %}