From 0ccf2f7b61ea9889b1c03e51dfc847ca16cd98e7 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 12 Feb 2019 14:31:53 -0600 Subject: finished up subscribe functions for lttr --- design/templates/lttr/confirm_activate.html | 17 +++++++++++++++++ design/templates/lttr/message/subscribe.html | 22 ++++++++++++++++++++++ design/templates/lttr/message/subscribe.txt | 9 +++++++++ .../templates/lttr/message/subscribe_subject.txt | 1 + design/templates/lttr/message/unsubscribe.html | 19 +++++++++++++++++++ design/templates/lttr/message/unsubscribe.txt | 9 +++++++++ .../templates/lttr/message/unsubscribe_subject.txt | 1 + design/templates/lttr/subscribed.html | 17 +++++++++++++++++ design/templates/lttr/subscriber_form.html | 5 +++-- 9 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 design/templates/lttr/confirm_activate.html create mode 100644 design/templates/lttr/message/subscribe.html create mode 100644 design/templates/lttr/message/subscribe.txt create mode 100644 design/templates/lttr/message/subscribe_subject.txt create mode 100644 design/templates/lttr/message/unsubscribe.html create mode 100644 design/templates/lttr/message/unsubscribe.txt create mode 100644 design/templates/lttr/message/unsubscribe_subject.txt create mode 100644 design/templates/lttr/subscribed.html (limited to 'design') diff --git a/design/templates/lttr/confirm_activate.html b/design/templates/lttr/confirm_activate.html new file mode 100644 index 0000000..d67ee1b --- /dev/null +++ b/design/templates/lttr/confirm_activate.html @@ -0,0 +1,17 @@ +{% extends 'base.html' %} +{% load typogrify_tags %} + +{% block pagetitle %}Luxagraf | Friends of a Long Year {% endblock %} +{% block metadescription %}An infrequesnt mailing list about travel, photography, tools, walking, the natural world and other ephemera.{% endblock %} + +{% block primary %} +
+
+

You're confirmed, thanks for joining.

+

If you'd like you can visit the archives of past mailings.

+
+
+{%endblock%} diff --git a/design/templates/lttr/message/subscribe.html b/design/templates/lttr/message/subscribe.html new file mode 100644 index 0000000..89d8221 --- /dev/null +++ b/design/templates/lttr/message/subscribe.html @@ -0,0 +1,22 @@ +{% load i18n %} + + + + + {% blocktrans with title=newsletter.title %}Subscription to {{ title }}{% endblocktrans %} + + + +{% blocktrans with name=subscription.name title=newsletter.title domain=site.domain url=subscription.subscribe_activate_url %}Dear {{ name }}, + +hola- + +Someone, hopefully you, asked to subscribe to {{ title }}, a luxagraf.net letter. + +To confirm your subscription, please follow this activation link: +https://{{ domain }}{{ url }} +{% endblocktrans %} +cheers +Scott + + diff --git a/design/templates/lttr/message/subscribe.txt b/design/templates/lttr/message/subscribe.txt new file mode 100644 index 0000000..2af5378 --- /dev/null +++ b/design/templates/lttr/message/subscribe.txt @@ -0,0 +1,9 @@ +Hola- + +Someone, hopefully you, asked to subscribe to {{ newsletter.title }}, a luxagraf.net letter. + +If you would like to confirm your subscription, please follow this activation link: +https://{{ site.domain }}{{ subscription.subscribe_activate_url }} + +cheers +Scott diff --git a/design/templates/lttr/message/subscribe_subject.txt b/design/templates/lttr/message/subscribe_subject.txt new file mode 100644 index 0000000..f4660e0 --- /dev/null +++ b/design/templates/lttr/message/subscribe_subject.txt @@ -0,0 +1 @@ +Confirm Your Subscription to {{newsletter.title}} diff --git a/design/templates/lttr/message/unsubscribe.html b/design/templates/lttr/message/unsubscribe.html new file mode 100644 index 0000000..4b1a86b --- /dev/null +++ b/design/templates/lttr/message/unsubscribe.html @@ -0,0 +1,19 @@ +{% load i18n %} + + + + + {% blocktrans with title=newsletter.title %}Unsubscription from {{ title }}{% endblocktrans %} + + +{% blocktrans with name=subscription.name title=newsletter.title domain=site.domain url=subscription.unsubscribe_activate_url %}Dear {{ name }}, + +you, or someone in your name requested unsubscription from {{ title }}. + +If you would like to confirm your unsubscription, please follow this activation link: +http://{{ domain }}{{ url }} + +Kind regards,{% endblocktrans %} +{{ newsletter.sender }} + + diff --git a/design/templates/lttr/message/unsubscribe.txt b/design/templates/lttr/message/unsubscribe.txt new file mode 100644 index 0000000..ab31fa5 --- /dev/null +++ b/design/templates/lttr/message/unsubscribe.txt @@ -0,0 +1,9 @@ +{% load i18n %}{% blocktrans with name=subscription.name title=newsletter.title domain=site.domain url=subscription.unsubscribe_activate_url %}Dear {{ name }}, + +you, or someone in your name requested unsubscription from {{ title }}. + +If you would like to confirm your unsubscription, please follow this activation link: +http://{{ domain }}{{ url }} + +Kind regards,{% endblocktrans %} +{{ newsletter.sender }} diff --git a/design/templates/lttr/message/unsubscribe_subject.txt b/design/templates/lttr/message/unsubscribe_subject.txt new file mode 100644 index 0000000..49c68ef --- /dev/null +++ b/design/templates/lttr/message/unsubscribe_subject.txt @@ -0,0 +1 @@ +{% load i18n %}{{ newsletter.title }} - {% trans "Confirm unsubscription" %} diff --git a/design/templates/lttr/subscribed.html b/design/templates/lttr/subscribed.html new file mode 100644 index 0000000..18ad151 --- /dev/null +++ b/design/templates/lttr/subscribed.html @@ -0,0 +1,17 @@ +{% extends 'base.html' %} +{% load typogrify_tags %} + +{% block pagetitle %}Luxagraf | Friends of a Long Year {% endblock %} +{% block metadescription %}An infrequesnt mailing list about travel, photography, tools, walking, the natural world and other ephemera.{% endblock %} + +{% block primary %} +
+
+

Thanks for joining.

+

Check your email for a link to confirm your subscription

+
+
+{%endblock%} diff --git a/design/templates/lttr/subscriber_form.html b/design/templates/lttr/subscriber_form.html index ded2c5f..c495cfa 100644 --- a/design/templates/lttr/subscriber_form.html +++ b/design/templates/lttr/subscriber_form.html @@ -17,9 +17,10 @@ {{field.label_tag}} {{field}} - {%endfor%} - + {% if forloop.last %}{%endif%} + {% if field.errors %}{{field.errors}}{% endif %} + {%endfor%}

Join Friends of a Long Year, an infrequent mailing that will keep you up-to-date with luxagraf and offer some thoughts on topics like travel, photography, the natural world, tools, walking and other ephemera. It comes about twice a month, sometimes less, sometimes more. Unsubscribing is easy. It's all self-hosted, secure, and private.

The name comes from the great early 20th century explorer and desert rat, Mary Hunter Austin, whose collected essays, Lost Borders is dedicated to the "Friends of a Long Year". This somewhoat inscrutable dedication grabbed me, and seemed like the perfect name for this mailing list.

-- cgit v1.2.3-70-g09d2