X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9d763695198b109f00b5d88a5cfe0190871271aa..8f031335a8a0dabceec381b89eb0cbbcb2f4b637:/src/catalogue/views.py?ds=sidebyside 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,