Layout.
[wolnelektury.git] / src / catalogue / templates / catalogue / 2022 / theme_detail.html
index 5713cec..29b0eeb 100644 (file)
           <div class="l-books__col">
 
             {% for fragment in object_list %}
-              <article class="l-books__item">
-                <figure class="l-books__item__img">
-                  <a href="{{ fragment.get_absolute_url }}">
-                    {% if fragment.book.cover_clean %}
-                      <img src="{{ fragment.book.cover_clean.url }}" alt="{{ fragment.book.title }}">
-                    {% endif %}
-                  </a>
-                </figure>
-                <div class="l-books__item__content">
-                  <div class="l-books__item__actions">
-                    <a href="#" class="icon icon-book-alt"></a>
-                    {% if fragment.book.has_mp3_file %}
-                      <a href="#" class="icon icon-audio"></a>
-                    {% endif %}
-                  </div>
-                  <h3>
-                    {% for author in fragment.book.authors %}
-                      <a href="{{ author.get_absolute_url }}">{{ author }}</a>{% if not forloop.last %}, {% endif %}
-                    {% endfor %}
-                  </h3>
-                  <h2><a href="{{ fragment.book.get_absolute_url }}">{{ fragment.book.title }}</a></h2>
-                  <div class="fragment-text">
-                    {{ fragment.short_text|safe }}
-                  </div>
-                  <a href="{{ fragment.get_absolute_url }}">Czytaj wiÄ™cej</a>
-                </div>
-              </article>
+              {% include 'catalogue/2022/fragment_box.html' %}
             {% endfor %}
             {% paginate using '2022/paginate.html' %}
           </div>