-{% extends "base.html" %}
+{% extends request.EXPERIMENTS.layout|yesno:"2022/base.html,base/base.html" %}
{% load i18n %}
{% load catalogue_tags %}
{% block bodyid %}recent-list{% endblock %}
-{% block body %}
- <h1>{% trans "Recent publications" %}</h1>
+{% block body %}{% block main %}
+ <h1>{% trans "Recent publications" %}</h1>
- {% url 'recent_audiobooks_list' as a %}
- {% url 'recent_daisy_list' as d %}
- <p class='normal-text'>
- {% blocktrans %}You can also see <a href="{{a}}">recent audiobooks</a>
- and <a href="{{d}}">recent DAISY files</a>.{% endblocktrans %}
- </p>
+ {% url 'recent_audiobooks_list' as a %}
+ {% url 'recent_daisy_list' as d %}
+ <p class='normal-text'>
+ {% blocktrans %}You can also see <a href="{{a}}">recent audiobooks</a>
+ and <a href="{{d}}">recent DAISY files</a>.{% endblocktrans %}
+ </p>
+ {% if request.EXPERIMENTS.layout %}
+ <div class="l-section l-section--col">
+ <div class="l-books__grid" id="book-list">
+ {% for book in object_list %}
+ {% include "catalogue/2022/book_box.html" %}
+ {% endfor %}
+ </div>
+ </div>
+ {% else %}
<div id="books-list">
- {% work_list object_list %}
+ {% work_list object_list %}
</div>
-{% endblock %}
+ {% endif %}
+{% endblock %}{% endblock %}