17514ed98022e41b7df001f699cf7bf23f2a4ef8
[wolnelektury.git] / src / catalogue / templates / catalogue / 2022 / author_detail.html
1 {% extends '2022/base.html' %}
2
3 {% load choose_cites from social_tags %}
4
5
6 {% block breadcrumbs %}
7   <a href="/katalog/"><span>Katalog</span></a>
8   <a href="/katalog/autor/"><span>Autor</span></a>
9 {% endblock %}
10
11 {% block main %}
12     <div class="l-section">
13       <div class="l-author__header">
14         {% if tags.0.photo %}
15           <figure>
16             <img src="{{ tags.0.photo.url }}" alt="{{ tags.0.name }}">
17           </figure>
18         {% endif %}
19         <h1>{{ tags.0.name }}</h1>
20       </div>
21     </div>
22
23     <div class="l-section">
24       <div class="l-books__header">
25         <div class="l-books__input">
26           <i class="icon icon-filter"></i>
27           <input type="text" placeholder="filtry, tytuł" class="quick-filter" data-for="book-list">
28         </div>
29         <div class="l-books__sorting">
30              <span>Sortuj:</span>
31              <div>
32              <button data-order="data-pop">najpopularniejsze</button>
33              <button class="is-active">alfabetycznie</button>
34              <!--button>chronologicznie</button-->
35              </div>
36              </div>
37       </div>
38     </div>
39
40     <div class="l-section l-section--col">
41       <div class="l-books__grid" id="book-list">
42         {% for book in object_list %}
43           {% include "catalogue/2022/book_box.html" %}
44         {% endfor %}
45       </div>
46     </div>
47
48     <section class="l-section">
49       <div class="l-author">
50         {% with author=tags.0 %}
51           {% include 'catalogue/2022/author_box.html' %}
52         {% endwith %}
53         {% choose_cites 3 author=tags.0 as cites %}
54         {% if cites %}
55         <div class="row">
56           <div class="l-author__quotes">
57             <div class="l-author__quotes__slider">
58
59               {% for fragment in cites %}
60                 <div class="l-author__quotes__slider__item">
61                   {% include "catalogue/2022/fragment_box.html" %}
62                 </div>
63               {% endfor %}
64
65             </div>
66           </div>
67         </div>
68         {% endif %}
69       </div>
70     </section>
71 {% endblock %}