{% load humanize %} {% load libraryauthtags %}
{% ifequal transaction.campaign.type 1 %} Your pledge: ${{transaction.amount|floatformat:2|intcomma}}.
Your premium: {% if transaction.premium %}{{ transaction.premium.description }}{% else %}You did not request a premium for this campaign.{% endif %}
{% if transaction.anonymous %}You asked to pledge anonymously, so you will be counted but not named on the list of supporters.
{% endif %}
Acknowledgements: {% endifequal %} {% ifequal transaction.campaign.type 2 %} {% ifequal transaction.host 'credit' %} Amount: ${{transaction.max_amount|floatformat:2|intcomma}}.
This amount has been deducted from your Unglue.it credit balance.
You have ${{request.user.credit.available|default:"0"}} of credit left.
{% else %} Total: ${{transaction.max_amount|floatformat:2|intcomma}}.
{% if transaction.max_amount > transaction.amount %} Your credit card has been charged ${{transaction.amount|floatformat:2|intcomma}}.
The rest has been deducted from your unglue.it credit balance.
You have ${{request.user.credit.available|default:"0"}} of credit left.
{% else %} This amount has been charged to your credit card.
{% endif %} {% endifequal %} License type: {{ transaction.offer.get_license_display }}
{% ifequal transaction.offer.license 2 %} Receiving library: {{ transaction.extra.library_id|libname }}
Number of copies: {{ transaction.extra.copies }} {% endifequal %} {% endifequal %}