Some minor funding changes.
[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     <span style="display:inline-block;margin-right: 1.5em;">{% trans "missing" %}: <em>{{ missing }} zł</em></span>
15     <span style="display:inline-block;margin-right: 1.5em;">{% trans "collected" %}: <em>{{ sum }} </em></span>
16     {% if is_current %}
17         <span style="display:inline-block;margin-right: 0em;">{% trans "until fundraiser end" %}:
18             <strong class="countdown inline mono" data-until='{{ offer.end|date_to_utc:True|utc_for_js }}'></strong>
19         </span>
20     {% endif %}
21     </span>
22     <div style="clear:both"></div>
23 </a>
24 {% endif %}