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