fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Login form.
[wolnelektury.git]
/
src
/
newsletter
/
views.py
diff --git
a/src/newsletter/views.py
b/src/newsletter/views.py
index
6c2be8a
..
11256ca
100644
(file)
--- a/
src/newsletter/views.py
+++ b/
src/newsletter/views.py
@@
-32,7
+32,12
@@
def subscribe_form(request, slug=''):
def subscribed(request):
def subscribed(request):
- return render(request, 'newsletter/subscribed.html', {
+ new_layout = request.EXPERIMENTS['layout'].value
+ if new_layout:
+ template_name = 'newsletter/2022/subscribed.html'
+ else:
+ template_name = 'newsletter/subscribed.html'
+ return render(request, template_name, {
'page_title': _('Subscribed'),
})
'page_title': _('Subscribed'),
})