X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/297e48d3c1b26b83366b27cc4ba960c8471b634b..2c8cbdedff9b723bd481e51d3aea771dd93fee7a:/src/newsletter/views.py?ds=sidebyside diff --git a/src/newsletter/views.py b/src/newsletter/views.py index 6c2be8a6c..11256ca8a 100644 --- a/src/newsletter/views.py +++ b/src/newsletter/views.py @@ -32,7 +32,12 @@ def subscribe_form(request, slug=''): 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'), })