{% extends "base.html" %}
+{% load i18n %}
-{% block titleextra %}Fundusz Wolnych Lektur{% endblock %}
+{% block titleextra %}{% trans "Remaining funds" %}{% endblock %}
{% block body %}
-<h1>Fundusz Wolnych Lektur</h1>
-<p>Suma: {{ amount }}</p>
+<h1>{% trans "Remaining funds" %}</h1>
-<ul class="plain">
- {% for entry in log %}
- <li class="white-box normal-text funding-plus">
- {{ entry.end }} +{{ entry.sum }}
- <span style="float:right">Częściowa zbiórka na: {{ entry }}</span>
- </li>
+<div class="left-column normal-text">
+<p>{% blocktrans with r="http://redakcja.wolnelektury.pl/" %}If
+the full amount needed for publishing a book is not raised in time,
+the funds are spent on <a href="{{r}}">other books waiting for
+publication</a>. The same thing happens with any money remaining
+from successful fundraisers.{% endblocktrans %}
+
+<a href="{% url 'infopage' 'wesprzyj' %}">{% trans "Learn more" %}</a>.</p>
+
+<p>{% trans "Spending these remaining funds is recorded in this table." %}</p>
+</div>
+
+
+<table class="normal-text wlfund">
+
+ <tr>
+ <td><div>{% trans "Date" %}:</div></td>
+ <td><div>{% trans "Operation" %}:</div></td>
+ <td><div>{% trans "Amount" %}:</div></td>
+ <td><div>{% trans "Balance" %}:</div></td>
+ </tr>
+
+ {% for tag, entry in log %}
+ {% if tag == 'spent' %}
+ <tr class="funding-minus">
+ <td><div>{{ entry.timestamp }}</div></td>
+ <td><div>{% trans "Money spent on publishing the book" %}:
+ <a href="{{ entry.book.get_absolute_url }}">
+ {{ entry.book }}</a></div></td>
+ <td><div>-{{ entry.amount }} zł</div></td>
+ <td><div>{{ entry.total }} zł</div></td>
+ </tr>
+ {% else %}
+ <tr class="funding-plus">
+ <td><div>{{ entry.end }}</div></td>
+ <td><div>{% trans "Money remaining from the fundraiser for" %}:
+ <a href="{{ entry.get_absolute_url }}">
+ {{ entry }}</a></div></td>
+ <td><div>+{{ entry.wlfund }} zł</div></td>
+ <td><div>{{ entry.total }} zł</div></td>
+ </tr>
+ {% endif %}
{% endfor %}
-</ul>
+</table>
{% endblock %}