26f6a47bbcccbefd26518b065601641a681f746a
[wolnelektury.git] / apps / funding / templates / funding / offer_list.html
1 {% extends "base.html" %}
2 {% load url from future %}
3 {% load i18n %}
4 {% load funding_tags %}
5
6 {% block titleextra %}{% trans "Support Wolne Lektury" %}{% endblock %}
7
8 {% block body %}
9 <h1>{% trans "Support Wolne Lektury" %}</h1>
10
11 {% for funding in object_list %}
12     {% if funding.is_current %}
13         <h2>{% trans "Current fundraiser:" %}</h2>
14     {% elif forloop.is_first %}
15         <h2>{% trans "Previous fundraisers:" %}</h2>
16     {% endif %}
17     <div class="white-box funding-{% if funding.is_current %}current{% else %}stale{% endif %}">
18         <p class="normal-text">{{ funding.start }} – {{ funding.end }}
19         {% if not funding.is_current %}
20             ({% trans "funding closed" %})
21         {% endif %}
22         </p>
23         {% funding funding link=1 %}
24         {% offer_detail_head funding %}
25     </div>
26     {% if funding.is_current and not forloop.is_last %}
27         <h2>{% trans "Previous fundraisers:" %}</h2>
28     {% endif %}
29 {% endfor %}
30
31 {% endblock %}