From 718dc1e8600b08621d27f45ad7c7d07e3137e360 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 21 Nov 2019 13:08:16 +0000 Subject: [PATCH] messages: Add HTML templates for donation emails Signed-off-by: Michael Tremer --- Makefile.am | 7 +++ src/templates/donate/messages/ask-again.html | 49 ++++++++++++++++++ .../donate/messages/christmas-1.html | 41 +++++++++++++++ .../donate/messages/christmas-2.html | 45 +++++++++++++++++ src/templates/donate/messages/christmas-2.txt | 2 +- .../donate/messages/christmas-3.html | 33 ++++++++++++ .../donate/messages/christmas-4.html | 50 +++++++++++++++++++ .../donate/messages/christmas-5.html | 37 ++++++++++++++ .../donate/messages/convert-to-monthly.html | 43 ++++++++++++++++ 9 files changed, 306 insertions(+), 1 deletion(-) create mode 100644 src/templates/donate/messages/ask-again.html create mode 100644 src/templates/donate/messages/christmas-1.html create mode 100644 src/templates/donate/messages/christmas-2.html create mode 100644 src/templates/donate/messages/christmas-3.html create mode 100644 src/templates/donate/messages/christmas-4.html create mode 100644 src/templates/donate/messages/christmas-5.html create mode 100644 src/templates/donate/messages/convert-to-monthly.html diff --git a/Makefile.am b/Makefile.am index 7ffc134d..7c618798 100644 --- a/Makefile.am +++ b/Makefile.am @@ -169,12 +169,19 @@ templates_donate_DATA = \ templates_donatedir = $(templatesdir)/donate templates_donate_messages_DATA = \ + src/templates/donate/messages/ask-again.html \ src/templates/donate/messages/ask-again.txt \ + src/templates/donate/messages/christmas-1.html \ src/templates/donate/messages/christmas-1.txt \ + src/templates/donate/messages/christmas-2.html \ src/templates/donate/messages/christmas-2.txt \ + src/templates/donate/messages/christmas-3.html \ src/templates/donate/messages/christmas-3.txt \ + src/templates/donate/messages/christmas-4.html \ src/templates/donate/messages/christmas-4.txt \ + src/templates/donate/messages/christmas-5.html \ src/templates/donate/messages/christmas-5.txt \ + src/templates/donate/messages/convert-to-monthly.html \ src/templates/donate/messages/convert-to-monthly.txt templates_donate_messagesdir = $(templates_donatedir)/messages diff --git a/src/templates/donate/messages/ask-again.html b/src/templates/donate/messages/ask-again.html new file mode 100644 index 00000000..5c69d592 --- /dev/null +++ b/src/templates/donate/messages/ask-again.html @@ -0,0 +1,49 @@ +{% extends "../../messages/base.html" %} + +{% block content %} +

+ {{ _("Hi %s,") % account.first_name }} +

+ +

+ {{ _("IPFire is a crowd-funded project. It relies on donations from people like you. Thank you for your donation to the IPFire Project.") }} +

+ +

+ {{ _("Further support is needed to continue our development. Please consider us on a regular basis. It really does make a difference.") }} +

+ +

+ {{ _("You can again donate by heading to:") }} https://www.ipfire.org/donate +

+ +

+ {{ _("Or, what would help us even more, is setting up a monthly donation:") }} +

+ + + + + + + + + +

+ {{ _("Having regular support allows us to make long-term development decisions.") }} +

+ +

+ {{ _("On behalf of the whole team behind IPFire: Thank you!") }} +

+{% end block %} diff --git a/src/templates/donate/messages/christmas-1.html b/src/templates/donate/messages/christmas-1.html new file mode 100644 index 00000000..f017d2ba --- /dev/null +++ b/src/templates/donate/messages/christmas-1.html @@ -0,0 +1,41 @@ +{% extends "../../messages/base-promo.html" %} + +{% block content %} +

+ {{ _("With 24 days to the big day, we know that some of you will be writing your list for Santa.") }} +

+ +

+ {{ _("On that list, have you considered setting up a donation to your favourite Open Source project?") }} +

+ +

+ {{ _("Your donation really does make a difference. Some of the changes this year, which have improved IPFire so much, would not have been possible without financial support.")}} +

+ +

+ {{ _("If you want to gift a donation this Christmas, please follow the link:") }} +

+ + + + + + + + + +

+ {{ _("We hope you have a good run-up to the festive season.") }} +

+{% end block %} diff --git a/src/templates/donate/messages/christmas-2.html b/src/templates/donate/messages/christmas-2.html new file mode 100644 index 00000000..17d6b94d --- /dev/null +++ b/src/templates/donate/messages/christmas-2.html @@ -0,0 +1,45 @@ +{% extends "../../messages/base-promo.html" %} + +{% block content %} +

+ {{ _("Hello,") }} +

+ +

+ {{ _("In the run-up to Christmas, we just wanted to give you an idea of what your donations do to support the IPFire Project:") }} +

+ + + +

+ {{ _("To help us with this, we would love your Christmas gift.") }} +

+ +

+ {{ _("Have you thought of a recurring donation? Long-term donations help to secure IPFire's future and deliver what we mentioned above.") }} +

+ + + + + + + + +{% end block %} diff --git a/src/templates/donate/messages/christmas-2.txt b/src/templates/donate/messages/christmas-2.txt index 4f527443..f12c7bf6 100644 --- a/src/templates/donate/messages/christmas-2.txt +++ b/src/templates/donate/messages/christmas-2.txt @@ -16,6 +16,6 @@ Subject: {{ _("Our Christmas wish...") }} {{ _("Have you thought of a recurring donation? Long-term donations help to secure IPFire's future and deliver what we mentioned above.") }} -{{ _("Click here, to fulfill our wish:") }} +{{ _("Click here, to fulfil our wish:") }} https://www.ipfire.org/donate?frequency=monthly&amount=10 diff --git a/src/templates/donate/messages/christmas-3.html b/src/templates/donate/messages/christmas-3.html new file mode 100644 index 00000000..5f81fad8 --- /dev/null +++ b/src/templates/donate/messages/christmas-3.html @@ -0,0 +1,33 @@ +{% extends "../../messages/base-promo.html" %} + +{% block content %} +

+ {{ _("Hi,") }} +

+ +

+ {{ _("with only days to go, shopping being completed, presents being wrapped, and the tree being decorated, would you consider one of the presents at the bottom of your tree to be for IPFire?") }} +

+ +

+ {{ _("Your donation helps us making IPFire more amazing.") }} +

+ + + + + + + + +{% end block %} diff --git a/src/templates/donate/messages/christmas-4.html b/src/templates/donate/messages/christmas-4.html new file mode 100644 index 00000000..e4ff3ce0 --- /dev/null +++ b/src/templates/donate/messages/christmas-4.html @@ -0,0 +1,50 @@ +{% extends "../../messages/base-promo.html" %} + +{% block content %} +

+ {{ _("Hello and Merry Christmas,") }} +

+ +

+ {{ _("firstly, I just wanted to say: Thank You!") }} +

+ +

+ {{ _("To our financial supporters, your gift to us have helped in the last year to make improvements we all use. Please do consider us in your future donation decisions.") }} +

+ +

+ {{ _("Secondly, to my fellow team members & contributors: Thank you for your support in the last year. We have really made some great progress due to your hard work.") }} +

+ +

+ {{ _("I would like to wish anyone who celebrates Christmas a happy and peaceful celebration. We are looking forward to the new year.") }} +

+ +

+ {{ _("If you haven't donated, yet, please follow the link:") }} +

+ + + + + + + + + +

+ {{ _("Thank you once again and Merry Christmas,") }} +
{{ _("-Michael") }} +

+{% end block %} diff --git a/src/templates/donate/messages/christmas-5.html b/src/templates/donate/messages/christmas-5.html new file mode 100644 index 00000000..7bf3fc6c --- /dev/null +++ b/src/templates/donate/messages/christmas-5.html @@ -0,0 +1,37 @@ +{% extends "../../messages/base-promo.html" %} + +{% block content %} +

+ {{ _("Hello,") }} +

+ +

+ {{ _("thank you for all your donations over Christmas.") }} +

+ +

+ {{ _("In the last year, we have made so many improvements to IPFire and we have added so many new features which would not have been possible without you.") }} +

+ +

+ {{ _("To support us in the new year, please consider setting up a monthly donation which will help us to do our work and make this year at least as successful as the last one.") }} +

+ + + + + + + + +{% end block %} diff --git a/src/templates/donate/messages/convert-to-monthly.html b/src/templates/donate/messages/convert-to-monthly.html new file mode 100644 index 00000000..8df76709 --- /dev/null +++ b/src/templates/donate/messages/convert-to-monthly.html @@ -0,0 +1,43 @@ +{% extends "../../messages/base-promo.html" %} + +{% block content %} +

+ {{ _("Hey %s,") % account.first_name }} +

+ +

+ {{ _("I just wanted to take a moment to thank you for your donation.") }} +

+ +

+ {{ _("If I could ask one more thing of you, could you consider converting this to a monthly donation?") }} +

+ +

+ {{ _("Having long-term funding allows us to invest in IPFire and make it better for everyone.") }} + {{ _("You can do this by clicking on this link:") }} +

+ + + + + + + + + +

+ {{ _("Your continuing support makes a real difference!") }} +
{{ _("-Michael") }} +

+{% end block %} -- 2.47.3