Layout.
[wolnelektury.git] / src / catalogue / templates / catalogue / recent_list.html
index f0fadb3..f6b9172 100644 (file)
@@ -1,4 +1,4 @@
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout|yesno:"2022/base.html,base/base.html" %}
 {% load i18n %}
 {% load catalogue_tags %}
 
@@ -6,17 +6,27 @@
 
 {% block bodyid %}recent-list{% endblock %}
 
-{% block body %}
+{% 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 %}
+      and <a href="{{d}}">recent DAISY files</a>.{% endblocktrans %}
   </p>
 
-  <div id="books-list">
-    {% work_list object_list %}
-  </div>
-{% endblock %}
+  {% 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 %}
+    </div>
+  {% endif %}
+{% endblock %}{% endblock %}