fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now shelf archive contains all pdf, odt and txt formats from books.
[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
90cbec3
..
c315cfe
100644
(file)
--- a/
apps/catalogue/templatetags/catalogue_tags.py
+++ b/
apps/catalogue/templatetags/catalogue_tags.py
@@
-41,17
+41,17
@@
def capfirst(text):
def simple_title(tags):
mapping = {
'author': u'Autor',
def simple_title(tags):
mapping = {
'author': u'Autor',
- 'theme': u'
M
otyw',
- 'epoch': u'
E
poka',
- 'genre': u'
G
atunek',
- 'kind': u'
R
odzaj',
- 'set': u'
P
ółka',
+ 'theme': u'
m
otyw',
+ 'epoch': u'
e
poka',
+ 'genre': u'
g
atunek',
+ 'kind': u'
r
odzaj',
+ 'set': u'
p
ółka',
}
title = []
for tag in tags:
}
title = []
for tag in tags:
- title.append("%s: %s
.
" % (mapping[tag.category], tag.name))
- return
' '.join(title
)
+ title.append("%s: %s" % (mapping[tag.category], tag.name))
+ return
capfirst(', '.join(title)
)
@register.simple_tag
@register.simple_tag