Django 1.8 and other updates.
[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 <table class="normal-text wlfund">
23
24     <tr>
25         <td>{% trans "Date" %}:</td>
26         <td>{% trans "Operation" %}:</td>
27         <td>{% trans "Amount" %}:</td>
28         <td>{% trans "Balance" %}:</td>
29     </tr>
30
31     {% for tag, entry in log %}
32     {% if tag == 'spent' %}
33         <tr class="funding-minus">
34             <td class="oneline">{{ entry.timestamp }}</td>
35             <td>{% trans "Money spent on publishing the book" %}:
36                 <a href="{{ entry.book.get_absolute_url }}">
37                 {{ entry.book }}</a></td>
38             <td>-{{ entry.amount }}&nbsp;zł</td>
39             <td>{{ entry.total }}&nbsp;zł</td>
40         </tr>
41     {% else %}
42         <tr class="funding-plus">
43             <td class="oneline">{{ entry.end }}</td>
44             <td>{% trans "Money remaining from the fundraiser for" %}:
45                 <a href="{{ entry.get_absolute_url }}">
46                 {{ entry }}</a></td>
47             <td>+{{ entry.wlfund }}&nbsp;zł</td>
48             <td>{{ entry.total }}&nbsp;zł</td>
49         </tr>
50     {% endif %}
51     {% empty %}
52         <tr><td colspan="4" style="text-align:center; color: #888;">
53             <em>{% trans "There are no previous fundraisers to show yet." %}</em>
54         </td></tr>
55     {% endfor %}
56 </table>
57
58
59 {% endblock %}