c04234dfcc923e703ef6146cee15ef4a071a822f
[wolnelektury.git] / src / funding / templates / funding / includes / funding_box.html
1 {% load i18n %}
2 {% load sorl_thumbnail %}
3
4 <article class="l-books__item" data-pop="-{{ book.popularity.count }}">
5   <figure class="l-books__item__img" style="height:240px">
6     <a href="{{ funding.get_absolute_url }}">
7       {% if funding.cover %}
8         <img src="{{ funding.cover.url }}" alt="{{ funding.title }}">
9       {% endif %}
10     </a>
11   </figure>
12   <div class="l-books__item__actions">
13     <div class="l-checkout__support__bar">
14       {% with funding.basic_info as info %}
15         <span class="{% if info.percentage < 15 %}little-progress{% endif %}" style="width: {{ info.percentage|stringformat:'.2f' }}%;"></span>
16       {% endwith %}
17     </div>
18   </div>
19   <h3>
20       {{ funding.author }}
21   </h3>
22   <h2><a href="{{ funding.get_absolute_url }}">{{ funding.title }}</a></h2>
23 </article>