2012-10-14 21:42:28 +00:00
|
|
|
{% load humanize %}
|
2013-12-15 06:43:17 +00:00
|
|
|
{% load libraryauthtags %}
|
2012-10-14 21:42:28 +00:00
|
|
|
<div class="trans_summary">
|
2017-12-14 21:24:26 +00:00
|
|
|
{% if transaction.campaign.type == 1 %}
|
|
|
|
Your {% if transaction.donation %}donation{% else %}pledge{% endif %}: ${{transaction.amount|floatformat:2|intcomma}}.<br />
|
|
|
|
{% if transaction.premium %}Your premium: {{ transaction.premium.description }}{% endif %}<br />
|
|
|
|
{% if transaction.anonymous %}You asked to support anonymously, so you will be counted but not named on the list of supporters.<br />{% endif %}<br />
|
2012-10-14 21:42:28 +00:00
|
|
|
Acknowledgements: <ul>
|
|
|
|
<li>The unglued ebook will be delivered to your inbox.</li>
|
|
|
|
{% if not transaction.anonymous %}
|
|
|
|
{% ifequal transaction.tier 1 %}
|
2013-08-18 19:21:55 +00:00
|
|
|
<li>You will be listed as a Supporter using the name "<i>{{ transaction.extra.ack_name }}</i>".</li>
|
2012-10-14 21:42:28 +00:00
|
|
|
{% endifequal %}
|
|
|
|
{% ifequal transaction.tier 2 %}
|
2013-08-18 19:21:55 +00:00
|
|
|
<li>You will be listed as a Benefactor using the name "<i>{{ transaction.extra.ack_name }}</i>" with a link to your Unglue.it supporter page.</li>
|
2012-10-14 21:42:28 +00:00
|
|
|
{% endifequal %}
|
|
|
|
{% ifequal transaction.tier 3 %}
|
2013-08-18 19:21:55 +00:00
|
|
|
<li>You will be listed as a Bibliophile using the name "<i>{{ transaction.extra.ack_name }}</i>" with a link to your Unglue.it supporter page.</li>
|
2012-10-14 21:42:28 +00:00
|
|
|
{% endifequal %}
|
|
|
|
{% endif %}
|
2013-08-18 19:21:55 +00:00
|
|
|
{% if transaction.extra.ack_dedication %}
|
|
|
|
<li>The following dedication will be included: <i>{{ transaction.extra.ack_dedication }}</i></li>
|
2012-10-14 21:42:28 +00:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2017-12-14 21:24:26 +00:00
|
|
|
{% elif transaction.campaign.type == 2 or not transaction.campaign %}
|
|
|
|
{% if transaction.host == 'credit' %}
|
2014-12-18 04:43:53 +00:00
|
|
|
Amount: ${{transaction.max_amount|floatformat:2|intcomma}}.<br />
|
2013-12-15 05:31:06 +00:00
|
|
|
This amount has been deducted from your Unglue.it credit balance.<br />
|
2013-12-18 16:17:54 +00:00
|
|
|
You have ${{request.user.credit.available|default:"0"}} of credit left.<br />
|
2013-12-15 05:31:06 +00:00
|
|
|
{% else %}
|
2014-12-18 04:43:53 +00:00
|
|
|
Total: ${{transaction.max_amount|floatformat:2|intcomma}}.<br />
|
2013-12-15 05:31:06 +00:00
|
|
|
{% if transaction.max_amount > transaction.amount %}
|
2014-12-18 04:43:53 +00:00
|
|
|
Your credit card has been charged ${{transaction.amount|floatformat:2|intcomma}}.<br />
|
2013-12-15 05:31:06 +00:00
|
|
|
The rest has been deducted from your unglue.it credit balance.<br />
|
2013-12-18 16:17:54 +00:00
|
|
|
You have ${{request.user.credit.available|default:"0"}} of credit left.<br />
|
2013-12-15 05:31:06 +00:00
|
|
|
{% else %}
|
|
|
|
This amount has been charged to your credit card.<br />
|
|
|
|
{% endif %}
|
2017-12-14 21:24:26 +00:00
|
|
|
{% endif %}
|
2017-02-13 18:33:26 +00:00
|
|
|
{% if transaction.campaign %}
|
2013-12-15 05:31:06 +00:00
|
|
|
License type: {{ transaction.offer.get_license_display }}<br />
|
2017-12-14 21:24:26 +00:00
|
|
|
{% if transaction.offer.license == 2 %}
|
2013-12-15 05:31:06 +00:00
|
|
|
Receiving library: {{ transaction.extra.library_id|libname }}<br />
|
|
|
|
Number of copies: {{ transaction.extra.copies }}
|
2017-12-14 21:24:26 +00:00
|
|
|
{% endif %}
|
2017-02-13 18:33:26 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
2012-10-14 21:42:28 +00:00
|
|
|
</div>
|