Some layout experiments.
[wolnelektury.git] / apps / funding / templates / funding / tags / funding.html
1 {% load i18n %}
2 {% load time_tags %}
3 {% if offer %}
4 {% spaceless %}
5 <div class="funding" style="">
6     {% if link and is_current %}
7         <a class="call" href="{{ offer.get_absolute_url }}">
8             {% trans "Support a book!" %}</a>
9     {% endif %}
10     <div class="description {% if link and is_current %}with-button{% endif %}"
11         style="display: inline-block;">
12     <strong>
13         {% if link %}<a href="{{ offer.get_absolute_url }}">{% endif %}
14         {{ offer }}
15         {% if link %}</a>{% endif %}
16     </strong>
17     <div class="progress"
18         style="text-align: center; background-size: {{ percentage|stringformat:'.2f' }}% 1px;"
19     >
20         {% if sum %}
21             <span class="piece" style="float:left">{% trans "collected" %}: <em>{{ sum }} </em></span>
22         {% endif %}
23         {% if not is_win %}
24             <span class="piece" style="float: right">{% trans "missing" %}: <em>{{ missing }} zł</em></span>
25         {% endif %}
26         {% if is_current %}
27             <span class="piece" style="display:inline-block;margin-right: 0em;">{% trans "until fundraiser end" %}:
28                 <span class="countdown inline" data-until='{{ offer.end|date_to_utc:True|utc_for_js }}'></span>
29             </span>
30         {% endif %}
31
32         <div style="clear: both"></div>
33     </div>
34     </div>
35 </div>
36 {% endspaceless %}
37 {% endif %}