cleanup
[wolnelektury.git] / src / catalogue / templates / catalogue / preview_ad_homepage.html
1 {% if book %}
2     <div class="p-homepage-prapremiera">
3         <h3>Prapremiera</h3>
4         <div class="p-homepage-prapremiera__box">
5           <div class="p-homepage-prapremiera__box__item">
6             <figure>
7               <a href="{{ book.get_absolute_url }}">
8                 <img src="{{ book.cover_clean.url }}" alt="{{ book.pretty_title }}">
9               </a>
10             </figure>
11             <div class="p-homepage-prapremiera__box__content">
12               <h4>
13                 {% for author in book.authors %}
14                   <a href="{{ author.get_absolute_url }}">{{ author }}</a>
15                 {% endfor %}
16               </h4>
17               <h3><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h3>
18               <p>{{ book.abstract|safe|truncatewords:20 }}</p>
19             </div>
20           </div>
21           <div class="p-homepage-prapremiera__box__donate">
22             {% if accessible %}
23               <p>Dziękujemy za wsparcie — przeczytaj w prezencie już dzisiaj!</p>
24             {% else %}
25               <p>Aby przeczytać prapremierę, <strong>dorzuć</strong> się do Wolnych Lektur dowolną wpłatą. Ustaw stałe wsparcie, a będziesz mieć dostęp do kolejnych <strong>prapremier</strong>.</p>
26               <a href="{{ book.get_absolute_url }}" class="l-button l-button--default l-button--default--dark">Dorzuć się</a>
27             {% endif %}
28           </div>
29         </div>
30     </div>
31 {% endif %}