book page fix
authorRadek Czajka <rczajka@rczajka.pl>
Thu, 29 Jun 2023 20:58:00 +0000 (22:58 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Thu, 29 Jun 2023 20:58:00 +0000 (22:58 +0200)
src/catalogue/templates/catalogue/2022/book_detail.html

index 7c2bb07..c2db0b1 100644 (file)
         {% endwith %}
       </section>
 
-      {% for author in book.authors %}
+      {% for tag in book.authors %}
         <section class="l-section">
           <div class="l-author">
-              {% include 'catalogue/2022/author_box.html' %}
-
-            {% choose_cites 3 book=book as cites %}
-            {% if cites %}
-              <div class="row">
-                <div class="l-author__quotes">
-                  <div class="l-author__quotes__slider">
-                    {% for fragment in cites %}
-                      {% include "catalogue/2022/fragment_slider_box.html" %}
-                    {% endfor %}
+            {% include 'catalogue/2022/author_box.html' %}
+
+            {% if forloop.first %}
+              {% choose_cites 3 book=book as cites %}
+              {% if cites %}
+                <div class="row">
+                  <div class="l-author__quotes">
+                    <div class="l-author__quotes__slider">
+                      {% for fragment in cites %}
+                        {% include "catalogue/2022/fragment_slider_box.html" %}
+                      {% endfor %}
+                    </div>
                   </div>
                 </div>
-              </div>
+              {% endif %}
             {% endif %}
           </div>
         </section>