fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more api changes, preparing for Android app
[wolnelektury.git]
/
apps
/
catalogue
/
templatetags
/
catalogue_tags.py
diff --git
a/apps/catalogue/templatetags/catalogue_tags.py
b/apps/catalogue/templatetags/catalogue_tags.py
index
ac783c0
..
c931e48
100644
(file)
--- a/
apps/catalogue/templatetags/catalogue_tags.py
+++ b/
apps/catalogue/templatetags/catalogue_tags.py
@@
-260,7
+260,7
@@
def tag_list(tags, choices=None):
@register.inclusion_tag('catalogue/folded_tag_list.html')
@register.inclusion_tag('catalogue/folded_tag_list.html')
-def folded_tag_list(tags, choices=None):
+def folded_tag_list(tags,
title='',
choices=None):
tags = [tag for tag in tags if tag.count]
if choices is None:
choices = []
tags = [tag for tag in tags if tag.count]
if choices is None:
choices = []
@@
-275,3
+275,7
@@
def folded_tag_list(tags, choices=None):
some_tags_hidden = True
return locals()
some_tags_hidden = True
return locals()
+
+@register.inclusion_tag('catalogue/book_info.html')
+def book_info(book):
+ return locals()