{% load humanize %} {% load libraryauthtags %}
{% ifequal transaction.campaign.type 1 %} Your pledge: ${{transaction.amount|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|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|intcomma}}.
{% if transaction.max_amount > transaction.amount %} Your credit card has been charged ${{transaction.amount}}.
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 %}