Searching, filtering fixes.
[wolnelektury.git] / src / catalogue / templates / catalogue / 2022 / author_box.html
1 <div class="row">
2   <h2>
3     {% if tag.category == 'author' %}O autorze
4     {% elif tag.category == 'kind' %}O rodzaju
5     {% elif tag.category == 'genre' %}O gatunku
6     {% elif tag.category == 'epoch' %}O epoce
7     {% elif tag.category == 'set' %}Półka
8     {% endif %}
9   </h2>
10   <div>
11     {% if tag.photo %}
12       <figure class="l-author__photo">
13         <img src="{{ tag.photo.url }}" alt="{{ tag.name }}">
14         <figcaption>
15           {{ tag.photo_attribution|safe }}
16         </figcaption>
17       </figure>
18     {% endif %}
19     <article class="l-author__info">
20       {% if tag.category == 'set' %}
21         {% load chunks %}
22         {% chunk 'polka-how-to' %}
23       {% else %}
24       <h3><a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a></h3>
25       <div class="l-article__overlay" data-max-height="327">
26         {{ tag.description|safe }}
27       </div>
28       <button class="l-article__read-more" aria-label="Kliknij aby rozwinąć" data-label="Czytaj więcej" data-action="Zwiń tekst">Czytaj więcej</button>
29       {% endif %}
30     </article>
31   </div>
32 </div>