{% load funding_tags %}
{% load pagination_tags %}
{% load fnp_share %}
+{% load thumbnail %}
{% block titleextra %}{{ object }}{% endblock %}
<h1>{{ object }}</h1>
-<div class="normal-text">{{ object.description|safe }}</div>
-
-{% funding object %}
+{% funding object show_title=False %}
<div class="white-box">
- <div class="normal-text">
- {% offer_status object %}
- {% offer_status_more object %}
- <p><a href="{% url 'infopage' 'wesprzyj' %}">{% trans "Learn more" %}</a>.</p>
+ <div class="funding-details-intro">
+ {% if object.cover %}
+ <img src="
+ {% thumbnail object.cover "139x193" as thumb %}
+ {{ thumb.url }}
+ {% empty %}
+ {{ object.cover.url }}
+ {% endthumbnail %}
+ " alt="Cover" class="funding-cover" />
+ {% endif %}
+ <div class="normal-text">
+ <h3>{% trans "Help free the book!" %}</h3>
+ {{ object.description|safe }}
+ {% offer_status object %}
+ {% offer_status_more object %}
+ <p><a href="{% url 'infopage' 'wesprzyj' %}">{% trans "Learn more" %}</a>.</p>
+ </div>
+
+ <div style="clear:both;"></div>
</div>
-
{% if object.is_current %}
<div class="normal-text">
{% autopaginate fundings 10 %}
{% for funding in fundings %}
<tr class="funding-plus">
- <td><div>{{ funding.payed_at.date }}</div></td>
- <td><div>
+ <td class="oneline">{{ funding.payed_at.date }}</td>
+ <td>
{% if funding.name %}
{{ funding.name }}
{% else %}
<em>{% trans "Anonymous" %}</em>
{% endif %}
- </div></td>
- <td><div>{{ funding.amount }} zł</div></td>
- <td><div>
+ </td>
+ <td>{{ funding.amount }} zł</td>
+ <td>
{% for perk in funding.perks.all %}
{{ perk.name }}{% if not forloop.last %},{% endif %}
{% endfor %}
- </div></td>
+ </td>
{% endfor %}
</table>