Basically usable funding workflow.
[wolnelektury.git] / apps / funding / templates / funding / tags / offer_detail_head.html
1 {% load url from future %}
2 {% load i18n %}
3 {% if state == "running" %}
4     <p class="normal-text">
5         {% blocktrans with due=offer.due end=offer.end %}If the target is met
6         by {{ end }}, this book will be published by {{ due }}.{% endblocktrans %}
7     </p>
8     <p class="normal-text">
9         {% url 'funding_wlfund' as url %}
10         {% blocktrans %}Any excessive money will be transfered to the
11         <a href="{{ url }}">Wolne Lektury Fund</a>.{% endblocktrans %}
12     </p>
13 {% elif state == "win" %}
14     {% if offer.book %}
15         <p class="normal-text">{% trans "See the published book:" %}
16             <a href="{{ offer.book.get_absolute_url }}">{{ offer.book }}</a>.</p>
17     {% else %}
18             <p class="normal-text">{% trans "Funding target has been met!" %}</p>
19         <p class="normal-text">{% trans "The book will be published by:" %} {{ offer.due }}.
20         {% if offer.redakcja_url %}
21             {% with url=offer.redakcja_url %}
22             {% blocktrans %}You can follow the work on the <a href="{{ url }}">Editorial Platform</a>.{% endblocktrans %}
23             {% endwith %}
24         {% endif %}
25         </p>
26     {% endif %}
27 {% elif state == "lose" %}
28     <p class="normal-text">{% trans "Funding target has not been met." %}
29     {% if offer.sum %}
30         {% url 'funding_wlfund' as url %}
31         {% blocktrans %}Collected funds have been transfered to the
32         <a href="{{ url }}">Wolne Lektury Fund</a>.{% endblocktrans %}
33     {% endif %}
34     </p>
35 {% endif %}