]> git.ipfire.org Git - ipfire.org.git/commitdiff
Add a drip campaign for Christmas
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 19 Nov 2019 14:13:19 +0000 (14:13 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 19 Nov 2019 14:13:19 +0000 (14:13 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/backend/accounts.py
src/templates/donate/messages/christmas-1.txt [new file with mode: 0644]
src/templates/donate/messages/christmas-2.txt [new file with mode: 0644]
src/templates/donate/messages/christmas-3.txt [new file with mode: 0644]
src/templates/donate/messages/christmas-4.txt [new file with mode: 0644]
src/templates/donate/messages/christmas-5.txt [new file with mode: 0644]

index 29b8a516f283e329863926b137434150d7f44663..a1b40ebd9e5b4ff497a5250b48881f1db9b550e0 100644 (file)
@@ -163,6 +163,15 @@ templates_donate_DATA = \
 
 templates_donatedir = $(templatesdir)/donate
 
+templates_donate_messages_DATA = \
+       src/templates/donate/messages/christmas-1.txt \
+       src/templates/donate/messages/christmas-2.txt \
+       src/templates/donate/messages/christmas-3.txt \
+       src/templates/donate/messages/christmas-4.txt \
+       src/templates/donate/messages/christmas-5.txt
+
+templates_donate_messagesdir = $(templates_donatedir)/messages
+
 templates_download_DATA = \
        src/templates/download/release.html
 
index 24261192b90acf274c2e983fced486e2c2b9261a..2c9c47ec54fb32ded21e7e8d0d958c026940c671 100644 (file)
@@ -374,8 +374,9 @@ class Accounts(Object):
                self.backend.messages.send_template("people/messages/new-account",
                        recipients=["moderators@ipfire.org"], account=account)
 
-               # Launch all drip campaigns
-               self.backend.campaigns.launch("signup", account)
+               # Launch drip campaigns
+               for campaign in ("signup", "christmas"):
+                       self.backend.campaigns.launch(campaign, account)
 
                return account
 
diff --git a/src/templates/donate/messages/christmas-1.txt b/src/templates/donate/messages/christmas-1.txt
new file mode 100644 (file)
index 0000000..9ec707f
--- /dev/null
@@ -0,0 +1,15 @@
+From: IPFire Project <no-reply@ipfire.org>
+To: {{ account.email_to }}
+Subject: {{ _("Christmas is coming...") }}
+
+{{ _("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:") }}
+
+ https://www.ipfire.org/donate?frequency=monthly&amount=10
+
+{{ _("We hope you have a good run-up to the festive season.") }}
diff --git a/src/templates/donate/messages/christmas-2.txt b/src/templates/donate/messages/christmas-2.txt
new file mode 100644 (file)
index 0000000..4f52744
--- /dev/null
@@ -0,0 +1,21 @@
+From: IPFire Project <no-reply@ipfire.org>
+To: {{ account.email_to }}
+Subject: {{ _("Our Christmas wish...") }}
+
+{{ _("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:") }}
+
+* {{ _("Your money ensures the longevity and long-term success of this project.") }}
+* {{ _("It helps us fund developers and extend our skills") }}
+* {{ _("It will aid us to promote IPFire to more people around the world") }}
+* {{ _("This funds conferences, where we focus on future projects") }}
+* {{ _("It pays for our hosting") }}
+
+{{ _("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.") }}
+
+{{ _("Click here, to fulfill our wish:") }}
+
+  https://www.ipfire.org/donate?frequency=monthly&amount=10
diff --git a/src/templates/donate/messages/christmas-3.txt b/src/templates/donate/messages/christmas-3.txt
new file mode 100644 (file)
index 0000000..d196b27
--- /dev/null
@@ -0,0 +1,13 @@
+From: IPFire Project <no-reply@ipfire.org>
+To: {{ account.email_to }}
+Subject: {{ _("Christmas Holidays are coming...") }}
+
+{{ _("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.") }}
+
+{{ _("To do this, please click here:") }}
+
+ https://www.ipfire.org/donate?frequency=monthly&amount=10
diff --git a/src/templates/donate/messages/christmas-4.txt b/src/templates/donate/messages/christmas-4.txt
new file mode 100644 (file)
index 0000000..53997b8
--- /dev/null
@@ -0,0 +1,20 @@
+From: Michael Tremer <michael.tremer@ipfire.org>
+To: {{ account.email_to }}
+Subject: {{ _("Merry Christmas") }}
+
+{{ _("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:") }}
+
+  https://www.ipfire.org/donate?frequency=monthly&amount=20
+
+{{ _("Thank you once again and Merry Christmas,") }}
+{{ _("-Michael") }}
diff --git a/src/templates/donate/messages/christmas-5.txt b/src/templates/donate/messages/christmas-5.txt
new file mode 100644 (file)
index 0000000..da82bcd
--- /dev/null
@@ -0,0 +1,13 @@
+From: Michael from the IPFire Project <michael.tremer@ipfire.org>
+To: {{ account.email_to }}
+Subject: {{ _("Happy New Year") }}
+
+{{ _("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.") }}
+
+https://www.ipfire.org/donate?frequency=monthly&amount=10