diff --git a/frontend/templates/notification/pledge_status_change/full.txt b/frontend/templates/notification/pledge_status_change/full.txt index 7245d503..15322b65 100644 --- a/frontend/templates/notification/pledge_status_change/full.txt +++ b/frontend/templates/notification/pledge_status_change/full.txt @@ -9,7 +9,15 @@ Your new pledge summary Amount pledged: ${{ transaction.amount|intcomma }} Premium: {% if transaction.premium %}{{ transaction.premium.description }}{% else %}None requested{% endif %}{% endif %} -If you'd like to visit the project page, click here: +Acknowledgements: +- The unglued ebook will be delivered to your inbox.{% if not transaction.anonymous %}{% ifequal transaction.tier 1 %} +- You will be listed as a Supporter using the name "{{ transaction.ack_name }}".{% endifequal %}{% ifequal transaction.tier 2 %} +- You will be listed as a Benefactor using the name "{{ transaction.ack_name }}" with a link to your Unglue.it supporter page.{% endifequal %}{% ifequal transaction.tier 3 %} +- You will be listed as a Bibliophile using the name "{{ transaction.ack_name }}" with a link to your Unglue.it supporter page.{% endifequal %}{% endif %}{% if transaction.ack_dedication %} +- The following dedication will be included: + {{ transaction.ack_dedication }}{% endif %} + +If you'd like to visit the campaign page or make changes, click here: https://{{site.domain}}{% url work transaction.campaign.work.id %} Thank you again for your support. diff --git a/frontend/templates/notification/pledge_status_change/notice.html b/frontend/templates/notification/pledge_status_change/notice.html index 71836dfc..5b33cf5a 100644 --- a/frontend/templates/notification/pledge_status_change/notice.html +++ b/frontend/templates/notification/pledge_status_change/notice.html @@ -17,7 +17,25 @@ {% else %} Your new pledge is as follows:
Amount: ${{ transaction.amount|intcomma }}
- Premium: {% if transaction.premium %}{{ transaction.premium.description }}{% else %}None requested{% endif %}
+ Premium: {% if transaction.premium %}{{ transaction.premium.description }}{% else %}None requested{% endif %}

+ + Acknowledgements: + Thank you for your continued support of {{ transaction.campaign.work.title }}. {% endif %} {% endblock %} \ No newline at end of file diff --git a/frontend/templates/notification/pledge_you_have_pledged/full.txt b/frontend/templates/notification/pledge_you_have_pledged/full.txt index cbc78825..28120792 100644 --- a/frontend/templates/notification/pledge_you_have_pledged/full.txt +++ b/frontend/templates/notification/pledge_you_have_pledged/full.txt @@ -5,6 +5,14 @@ Pledge summary Amount pledged: ${{ transaction.amount|intcomma }} Premium: {% if transaction.premium %}{{ transaction.premium.description }}{% else %}None requested{% endif %} +Acknowledgements: +- The unglued ebook will be delivered to your inbox.{% if not transaction.anonymous %}{% ifequal transaction.tier 1 %} +- You will be listed as a Supporter using the name "{{ transaction.ack_name }}".{% endifequal %}{% ifequal transaction.tier 2 %} +- You will be listed as a Benefactor using the name "{{ transaction.ack_name }}" with a link to your Unglue.it supporter page.{% endifequal %}{% ifequal transaction.tier 3 %} +- You will be listed as a Bibliophile using the name "{{ transaction.ack_name }}" with a link to your Unglue.it supporter page.{% endifequal %}{% endif %}{% if transaction.ack_dedication %} +- The following dedication will be included: + {{ transaction.ack_dedication }}{% endif %} + You can help even more by sharing this campaign with your friends. Facebook: https://www.facebook.com/sharer.php?u=https://{{ site.domain }}{% url work transaction.campaign.work.id %} diff --git a/frontend/templates/pledge_complete.html b/frontend/templates/pledge_complete.html index 68964fc9..7ca27b9a 100644 --- a/frontend/templates/pledge_complete.html +++ b/frontend/templates/pledge_complete.html @@ -36,6 +36,24 @@
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 want your pledge to be anonymous.
{% endif %}
+ Acknowledgements:
diff --git a/payment/models.py b/payment/models.py index 9766e332..53783bcd 100644 --- a/payment/models.py +++ b/payment/models.py @@ -87,7 +87,18 @@ class Transaction(models.Model): # whether the user wants to be not listed publicly anonymous = models.BooleanField(null=False) - + + @property + def tier(self): + if self.amount < 25: + return 0 + if self.amount < 50: + return 1 + if self.amount < 100: + return 2 + else: + return 3 + @property def ack_link(self): return 'https://unglue.it/supporter/%s'%urllib.urlencode(self.user.username) if not self.anonymous else ''