summaryrefslogtreecommitdiff
path: root/app/lttr
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf>2021-03-06 09:03:59 -0500
committerluxagraf <sng@luxagraf>2021-03-06 09:03:59 -0500
commit28fe7b7ee7abc40de4e4a651c3f3b7b10d0e7db0 (patch)
tree61b3455e716d9882a7d23cfa63bd0ad533aefe1f /app/lttr
parent2554e5f64ce49348e0b90acaac0e4498687c816f (diff)
src: added a newsletter for source. experimenting with sending posts.
Diffstat (limited to 'app/lttr')
-rw-r--r--app/lttr/models.py1
-rw-r--r--app/lttr/templates/lttr/message/subscribe.html7
-rw-r--r--app/lttr/templates/lttr/message/subscribe.txt5
3 files changed, 7 insertions, 6 deletions
diff --git a/app/lttr/models.py b/app/lttr/models.py
index cc5db66..e39b3b0 100644
--- a/app/lttr/models.py
+++ b/app/lttr/models.py
@@ -50,6 +50,7 @@ class Newsletter(models.Model):
""" A model for Newletters. Might I one day have two? I might. """
title = models.CharField(max_length=250)
slug = models.SlugField(db_index=True, unique=True)
+ intro = models.TextField(blank=True, null=True)
def __str__(self):
return self.title
diff --git a/app/lttr/templates/lttr/message/subscribe.html b/app/lttr/templates/lttr/message/subscribe.html
index 3ed34db..56ccbcb 100644
--- a/app/lttr/templates/lttr/message/subscribe.html
+++ b/app/lttr/templates/lttr/message/subscribe.html
@@ -7,14 +7,13 @@
</title>
</head>
<body>
-{% blocktrans with name=subscription.name title=newsletter.title domain=site.domain url=subscription.subscribe_activate_url %}
+{% blocktrans with name=subscription.name title=newsletter.title domain=site.domain url=subscription.subscribe_activate_url intro=newsletter.intro %}
<p>Hola-</p>
-<p>Someone, hopefully you, asked to subscribe to {{ title }}, a luxagraf.net letter.</p>
+<p>Someone, hopefully you, asked to subscribe to luxagraf's {{ title }} newsletter. {{ intro }}</p>
-<p>To confirm your subscription, please follow this activation link:
-</p>
+<p>Please click this link to active your subscription:</p>
https://{{ domain }}{{ url }}
{% endblocktrans %}
diff --git a/app/lttr/templates/lttr/message/subscribe.txt b/app/lttr/templates/lttr/message/subscribe.txt
index 6869d5f..edbc467 100644
--- a/app/lttr/templates/lttr/message/subscribe.txt
+++ b/app/lttr/templates/lttr/message/subscribe.txt
@@ -1,8 +1,9 @@
Hola-
-Someone, hopefully you, asked to subscribe to {{ newsletter.title }}, a luxagraf.net letter.
+Someone, hopefully you, asked to subscribe to luxagraf's {{ newsletter.title }} newsletter. {{ newsletter.intro }}
+
+Please click this link to active your subscription:
-If you would like to confirm your subscription, please follow this activation link:
https://{{ site.domain }}{{ subscription.subscribe_activate_url }}
-Scott