X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9d763695198b109f00b5d88a5cfe0190871271aa..a9b45b86d91d95987e15f5113695d7c27e6d66a2:/src/catalogue/views.py diff --git a/src/catalogue/views.py b/src/catalogue/views.py index 2b188e684..b4e5920ea 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -299,9 +299,14 @@ def book_fragments(request, slug, theme_slug): fragments = Fragment.tagged.with_all([theme]).filter( Q(book=book) | Q(book__ancestor=book)) + if request.EXPERIMENTS['layout'].value: + template_name = 'catalogue/2022/book_fragments.html' + else: + template_name = 'catalogue/book_fragments.html' + return render( request, - 'catalogue/book_fragments.html', + template_name, { 'book': book, 'theme': theme,