Cosmetic funding changes.
[wolnelektury.git] / apps / funding / templates / funding / offer_detail.html
1 {% extends "base.html" %}
2 {% load url from future %}
3 {% load i18n static %}
4 {% load funding_tags %}
5 {% load pagination_tags %}
6 {% load fnp_share %}
7 {% load thumbnail %}
8
9
10 {% block titleextra %}{{ object }}{% endblock %}
11
12 {% block metadescription %}Wesprzyj kolejną publikację Wolnych Lektur!{% endblock %}
13
14
15 {% block body %}
16
17 <h1>{{ object }}</h1>
18
19 {% funding object show_title=False %}
20 <div class="white-box">
21     <div class="funding-details-intro">
22         {% if object.cover %}
23             <img src="
24                 {% thumbnail object.cover "139x193" as thumb %}
25                     {{ thumb.url }}
26                 {% empty %}
27                     {{ object.cover.url }}
28                 {% endthumbnail %}
29             " alt="Cover" class="funding-cover" />
30         {% endif %}
31         <div class="normal-text">
32         <h3>{% trans "Help free the book!" %}</h3>
33         {{ object.description|safe }}
34         {% offer_status object %}
35         {% offer_status_more object %}
36         <p><a href="{% url 'infopage' 'wesprzyj' %}">{% trans "Learn more" %}</a>.</p>
37         </div>
38         
39         <div style="clear:both;"></div>
40     </div>
41
42     {% if object.is_current %}
43         <div class="normal-text">
44             <h3>{% trans "Support the publication" %}</h3>
45             <form action="" method="post">
46                 <table>
47                 {{ form.as_table }}
48                 <tr><td></td><td>
49                     <button type="submit" style="border: none; background: none; cursor: pointer">
50                     <img alt="{% trans 'Donate!' %}" src="{% static 'img/payu.png' %}" />
51                     </button>
52                     </td></tr>
53                 </table>
54             </form>
55         </div>
56
57         {% url 'funding_current' object.slug as current %}
58         <p class="normal-text">{% trans "Tell your friends!" %}</p>
59         <p class="share">{% share current _("Support Wolne Lektury!") "big" %}</p>
60     {% endif %}
61
62     <p class="normal-text"><a href="{% url 'funding' %}">{% trans "See all fundraisers." %}</a></p>
63
64 </div>
65
66
67 <h2>{% trans "Supporters" %}:</h2>
68
69 <div class="white-box normal-text">
70 {% with object.funding_payed.all as fundings %}
71     
72     <table class="wlfund">
73     {% autopaginate fundings 10 %}
74     {% for funding in fundings %}
75         <tr class="funding-plus">
76             <td class="oneline">{{ funding.payed_at.date }}</td>
77             <td>
78                 {% if funding.name %}
79                     {{ funding.name }}
80                 {% else %}
81                     <em>{% trans "Anonymous" %}</em>
82                 {% endif %}
83             </td>
84             <td>{{ funding.amount }}&nbsp;zł</td>
85             <td>&nbsp;
86                 {% for perk in funding.perks.all %}
87                     {{ perk.name }}{% if not forloop.last %},{% endif %}
88                 {% endfor %}
89             </td>
90     {% endfor %}
91     </table>
92     
93     {% paginate %}
94 {% endwith %}
95 </div>
96
97 {% endblock %}