Further refactoring of tag lists.
[wolnelektury.git] / apps / catalogue / templatetags / catalogue_tags.py
index 8cce80d..51ee863 100644 (file)
@@ -187,3 +187,12 @@ def latest_blog_posts(feed_url, posts_to_show=5):
             })
     return {'posts': posts}
 
+
+@register.inclusion_tag('catalogue/tag_list.html')
+def tag_list(tags, choices=None):
+    if choices is None:
+        choices = []
+    if len(tags) == 1:
+        one_tag = tags[0]
+    return locals()
+