fixes
[wolnelektury.git] / src / funding / templates / funding / offer_list.html
1 {% extends "base/base.html" %}
2 {% load i18n %}
3 {% load pagination_tags %}
4
5 {% block titleextra %}{% trans "All fundraisers" %}{% endblock %}
6
7 {% block bodyid %}funding-offer-list{% endblock %}
8
9 {% block body %}
10   <h1>{% trans "All fundraisers" %}</h1>
11
12   {% autopaginate object_list 10 %}
13   {% if page_obj.number == 1 %}
14     <h2>{% trans "Current fundraiser:" %}</h2>
15   {% endif %}
16
17   {% for offer in object_list %}
18     {% with is_win=offer.is_win is_current=offer.is_current %}
19       {% if not is_current  and forloop.first and page_obj.number == 1 %}
20         <p class="normal-text">{% trans "No fundraiser is currently running." %}</p>
21         <h2>{% trans "Previous fundraisers:" %}</h2>
22       {% endif %}
23
24       {{ offer.list_bar }}
25
26       <div class="white-box normal-text">
27         {% if is_current %}
28           <h3>{% trans "Help free the book!" %}</h3>
29           {{ offer.description|safe }}
30         {% endif %}
31         {{ offer.status }}
32         {{ offer.status_more }}
33       </div>
34
35       {% if is_current and not forloop.last %}
36         <h2>{% trans "Previous fundraisers:" %}</h2>
37       {% endif %}
38     {% endwith %}
39   {% endfor %}
40   {% paginate %}
41 {% endblock %}