From: Marek Stępniowski <marek@stepniowski.com>
Date: Thu, 11 Sep 2008 16:27:30 +0000 (+0200)
Subject: Added tag_list template to repository.
X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/3e95cf1be0698e2be2cf5b543a0379c21071ecfa

Added tag_list template to repository.
---

diff --git a/wolnelektury/templates/catalogue/tag_list.html b/wolnelektury/templates/catalogue/tag_list.html
new file mode 100644
index 000000000..00d99e567
--- /dev/null
+++ b/wolnelektury/templates/catalogue/tag_list.html
@@ -0,0 +1,10 @@
+{% load catalogue_tags %}
+{% if one_tag %}
+    <p>Zobacz całą kategorię <a href="{% catalogue_url one_tag %}">{{ one_tag }}</a>.</p>
+{% else %}
+    <ul>
+        {% for tag in tags %}
+            <li><a href="{% catalogue_url choices tag %}">{{ tag }}&nbsp;({{ tag.count }})</a></li>
+        {% endfor %}
+    </ul>
+{% endif %}