fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove the banner
[wolnelektury.git]
/
src
/
social
/
templatetags
/
social_tags.py
diff --git
a/src/social/templatetags/social_tags.py
b/src/social/templatetags/social_tags.py
index
81a69e0
..
a4b0f3e
100644
(file)
--- a/
src/social/templatetags/social_tags.py
+++ b/
src/social/templatetags/social_tags.py
@@
-1,5
+1,5
@@
-# This file is part of Wolne
l
ektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja
Nowoczesna Polska
. See NOTICE for more information.
+# This file is part of Wolne
L
ektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja
Wolne Lektury
. See NOTICE for more information.
#
import re
from django import template
#
import re
from django import template
@@
-51,8
+51,8
@@
def book_shelf_tags(context, book_id):
return lazy(get_value, str)()
return lazy(get_value, str)()
-@register.inclusion_tag('social/carousel
_2022
.html', takes_context=True)
-def carousel
_2022
(context, placement):
+@register.inclusion_tag('social/carousel.html', takes_context=True)
+def carousel(context, placement):
banners = Carousel.get(placement).carouselitem_set.all()#first().get_banner()
return {
'banners': [b.get_banner() for b in banners],
banners = Carousel.get(placement).carouselitem_set.all()#first().get_banner()
return {
'banners': [b.get_banner() for b in banners],