fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6034428
)
Minor fix: mark_safe in template tag for headers.
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 17 Jun 2019 12:24:16 +0000
(14:24 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 17 Jun 2019 12:24:16 +0000
(14:24 +0200)
src/catalogue/templatetags/catalogue_tags.py
patch
|
blob
|
history
diff --git
a/src/catalogue/templatetags/catalogue_tags.py
b/src/catalogue/templatetags/catalogue_tags.py
index
ef0ea5d
..
2670e58
100644
(file)
--- a/
src/catalogue/templatetags/catalogue_tags.py
+++ b/
src/catalogue/templatetags/catalogue_tags.py
@@
-44,8
+44,8
@@
def html_title_from_tags(tags):
if len(tags) < 2:
return title_from_tags(tags)
template = Template("{{ category }}: <a href='{{ tag.get_absolute_url }}'>{{ tag.name }}</a>")
if len(tags) < 2:
return title_from_tags(tags)
template = Template("{{ category }}: <a href='{{ tag.get_absolute_url }}'>{{ tag.name }}</a>")
- return capfirst(",<br/>".join(
- template.render(Context({'tag': tag, 'category': _(tag.category)})) for tag in tags))
+ return
mark_safe(
capfirst(",<br/>".join(
+ template.render(Context({'tag': tag, 'category': _(tag.category)})) for tag in tags))
)
def simple_title(tags):
def simple_title(tags):