Basically usable funding workflow.
[wolnelektury.git] / apps / funding / templates / funding / tags / funding.html
1 {% load i18n %}
2 {% load time_tags %}
3 {% if offer %}
4 <a
5     class="funding {{ add_class }}"
6     style="background-size: {{ percentage|stringformat:'.2f' }}% 1px;"
7     {% if link %}href="{{ offer.get_absolute_url }}"{% endif %}
8     >
9     {% if is_current %}
10         {% trans "Support a book:" %}
11     {% endif %}
12     <em>{{ offer }}</em>
13     <span style="float:right">
14     {% trans "collected" %}: <em>{{ offer.sum }} / {{ offer.target }} zł</em>
15     {% if is_current %}
16         <span style="margin-left: 2em;">{% trans "until fundraiser end" %}:
17             <strong class="countdown inline" data-until='{{ offer.end|local_to_utc|utc_for_js }}'></strong>
18         </span>
19     {% endif %}
20     </span>
21     <div style="clear:both"></div>
22 </a>
23 {% endif %}