Merge branch 'master' into funding
[wolnelektury.git] / apps / funding / templates / funding / wlfund.html
1 {% extends "base.html" %}
2 {% load i18n %}
3
4 {% block titleextra %}{% trans "Remaining funds" %}{% endblock %}
5
6 {% block body %}
7
8 <h1>{% trans "Remaining funds" %}</h1>
9
10 <div class="left-column normal-text">
11 <p>{% blocktrans with r="http://redakcja.wolnelektury.pl/" %}If
12 the full amount needed for publishing a book is not raised in time,
13 the funds are spent on <a href="{{r}}">other books waiting for
14 publication</a>. The same thing happens with any money remaining
15 from successful fundraisers.{% endblocktrans %}
16
17 <a href="{% url 'infopage' 'wesprzyj' %}">{% trans "Learn more" %}</a>.</p>
18
19 <p>{% trans "Spending these remaining funds is recorded in this table." %}</p>
20 </div>
21
22
23 <table class="normal-text wlfund">
24
25     <tr>
26         <td><div>{% trans "Date" %}:</div></td>
27         <td><div>{% trans "Operation" %}:</div></td>
28         <td><div>{% trans "Amount" %}:</div></td>
29         <td><div>{% trans "Balance" %}:</div></td>
30     </tr>
31
32     {% for tag, entry in log %}
33     {% if tag == 'spent' %}
34         <tr class="funding-minus">
35             <td><div>{{ entry.timestamp }}</div></td>
36             <td><div>{% trans "Money spent on publishing the book" %}:
37                 <a href="{{ entry.book.get_absolute_url }}">
38                 {{ entry.book }}</a></div></td>
39             <td><div>-{{ entry.amount }} zł</div></td>
40             <td><div>{{ entry.total }} zł</div></td>
41         </tr>
42     {% else %}
43         <tr class="funding-plus">
44             <td><div>{{ entry.end }}</div></td>
45             <td><div>{% trans "Money remaining from the fundraiser for" %}:
46                 <a href="{{ entry.get_absolute_url }}">
47                 {{ entry }}</a></div></td>
48             <td><div>+{{ entry.wlfund }} zł</div></td>
49             <td><div>{{ entry.total }} zł</div></td>
50         </tr>
51     {% endif %}
52     {% endfor %}
53 </table>
54
55
56 {% endblock %}