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