Changes to the wording, small cosmetic changes
[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 {% load pagination_tags %}
6
7 {% block titleextra %}{% trans "All fundraisers" %}{% endblock %}
8
9 {% block bodyid %}funding-offer-list{% endblock %}
10
11 {% block body %}
12 <h1>{% trans "All fundraisers" %}</h1>
13
14
15 {% autopaginate object_list 10 %}
16 {% for offer in object_list %}
17 {% with is_win=offer.is_win is_current=offer.is_current %}
18
19     {% if is_current %}
20         <h2>{% trans "Current fundraiser:" %}</h2>
21     {% elif forloop.is_first %}
22         <h2>{% trans "Previous fundraisers:" %}</h2>
23     {% endif %}
24
25     {% funding offer link=1 show_title_calling=False %}
26
27     <div class="white-box normal-text">
28         {% if is_current %}
29             <h3>{% trans "Help free the book!" %}</h3>
30             {{ offer.description|safe }}
31         {% endif %}
32         {% offer_status offer %}
33         {% offer_status_more offer %}
34     </div>
35
36     {% if is_current and not forloop.is_last %}
37         <h2>{% trans "Previous fundraisers:" %}</h2>
38     {% endif %}
39
40 {% endwith %}
41 {% endfor %}
42 {% paginate %}
43
44 {% endblock %}