Some layout experiments.
[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     <div class="normal-text">
26         {% offer_status offer %}
27     </div>
28
29     {% funding offer link=1 %}
30
31
32     <div class="white-box normal-text">
33         {% offer_status_more offer %}
34     </div>
35
36     </div>
37     {% if is_current and not forloop.is_last %}
38         <h2>{% trans "Previous fundraisers:" %}</h2>
39     {% endif %}
40
41 {% endwith %}
42 {% endfor %}
43 {% paginate %}
44
45 {% endblock %}