From bb3973ffb714c932e9ec6dd6a751228dc71fe1d3 Mon Sep 17 00:00:00 2001 From: lxf Date: Sat, 14 May 2022 16:38:07 -0400 Subject: initial commit --- app/lttr/templates/lttr/confirm_activate.html | 24 ++ .../templates/lttr/emails/friends_html_email.html | 249 ++++++++++++++++++++ .../lttr/emails/friends_plain_text_email.txt | 16 ++ .../templates/lttr/emails/range_html_email.html | 239 ++++++++++++++++++++ .../lttr/emails/range_plain_text_email.txt | 19 ++ .../lttr/emails/test-friends_html_email.html | 250 +++++++++++++++++++++ .../lttr/emails/test-friends_plain_text_email.txt | 16 ++ .../lttr/emails/test-range_html_email.html | 239 ++++++++++++++++++++ .../lttr/emails/test-range_plain_text_email.txt | 19 ++ app/lttr/templates/lttr/message/subscribe.html | 23 ++ app/lttr/templates/lttr/message/subscribe.txt | 9 + .../templates/lttr/message/subscribe_subject.txt | 1 + app/lttr/templates/lttr/message/unsubscribe.html | 19 ++ app/lttr/templates/lttr/message/unsubscribe.txt | 9 + .../templates/lttr/message/unsubscribe_subject.txt | 1 + .../templates/lttr/newslettermailing_detail.html | 155 +++++++++++++ app/lttr/templates/lttr/postcard_subscribe.html | 29 +++ app/lttr/templates/lttr/postcard_subscribed.html | 24 ++ app/lttr/templates/lttr/range_detail.html | 184 +++++++++++++++ app/lttr/templates/lttr/range_list.html | 44 ++++ app/lttr/templates/lttr/range_subscribe.html | 23 ++ app/lttr/templates/lttr/subscribe.html | 23 ++ app/lttr/templates/lttr/subscribed.html | 24 ++ app/lttr/templates/lttr/unsubscribe.html | 24 ++ 24 files changed, 1663 insertions(+) create mode 100644 app/lttr/templates/lttr/confirm_activate.html create mode 100644 app/lttr/templates/lttr/emails/friends_html_email.html create mode 100644 app/lttr/templates/lttr/emails/friends_plain_text_email.txt create mode 100644 app/lttr/templates/lttr/emails/range_html_email.html create mode 100644 app/lttr/templates/lttr/emails/range_plain_text_email.txt create mode 100644 app/lttr/templates/lttr/emails/test-friends_html_email.html create mode 100644 app/lttr/templates/lttr/emails/test-friends_plain_text_email.txt create mode 100644 app/lttr/templates/lttr/emails/test-range_html_email.html create mode 100644 app/lttr/templates/lttr/emails/test-range_plain_text_email.txt create mode 100644 app/lttr/templates/lttr/message/subscribe.html create mode 100644 app/lttr/templates/lttr/message/subscribe.txt create mode 100644 app/lttr/templates/lttr/message/subscribe_subject.txt create mode 100644 app/lttr/templates/lttr/message/unsubscribe.html create mode 100644 app/lttr/templates/lttr/message/unsubscribe.txt create mode 100644 app/lttr/templates/lttr/message/unsubscribe_subject.txt create mode 100644 app/lttr/templates/lttr/newslettermailing_detail.html create mode 100644 app/lttr/templates/lttr/postcard_subscribe.html create mode 100644 app/lttr/templates/lttr/postcard_subscribed.html create mode 100644 app/lttr/templates/lttr/range_detail.html create mode 100644 app/lttr/templates/lttr/range_list.html create mode 100644 app/lttr/templates/lttr/range_subscribe.html create mode 100644 app/lttr/templates/lttr/subscribe.html create mode 100644 app/lttr/templates/lttr/subscribed.html create mode 100644 app/lttr/templates/lttr/unsubscribe.html (limited to 'app/lttr/templates') diff --git a/app/lttr/templates/lttr/confirm_activate.html b/app/lttr/templates/lttr/confirm_activate.html new file mode 100644 index 0000000..a2d3a3d --- /dev/null +++ b/app/lttr/templates/lttr/confirm_activate.html @@ -0,0 +1,24 @@ +{% extends 'base.html' %} +{% load typogrify_tags %} + +{% block pagetitle %}Your subscription is active, thank you! | luxagraf.net {% endblock %} +{% block metadescription %}Thank you, I appreciate you joining the club{% endblock %} + +{% block primary %} + +
+
+

You're confirmed, thanks for joining.

+

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

+
+
+{%endblock%} diff --git a/app/lttr/templates/lttr/emails/friends_html_email.html b/app/lttr/templates/lttr/emails/friends_html_email.html new file mode 100644 index 0000000..b7e4bf2 --- /dev/null +++ b/app/lttr/templates/lttr/emails/friends_html_email.html @@ -0,0 +1,249 @@ +{% load typogrify_tags %} + + + + + + + {{object.title}} + + + + + + + + + + + +
+
+ + + + +
+


+ Friends of a Long Year — {{object.get_issue_str}} — {{object.pub_date|date:"F"}} {{object.pub_date|date:"j, Y"}}

+

{{object.title|safe|smartypants}}

+ +
+ + {% include "lib/friends_featured_img.html" with image=object.featured_image %} + +
+
+ + {{object.body_email_html|safe|smartypants}} + +
+
+
+
+ + + + + + + + + + diff --git a/app/lttr/templates/lttr/emails/friends_plain_text_email.txt b/app/lttr/templates/lttr/emails/friends_plain_text_email.txt new file mode 100644 index 0000000..9ff7f61 --- /dev/null +++ b/app/lttr/templates/lttr/emails/friends_plain_text_email.txt @@ -0,0 +1,16 @@ + +{{ object.email_encode|safe }} + +----- + +You're getting this email because you signed up for + +Scott Gilbertson's (luxagraf)[https://luxagraf.net/] newsletter, + +*Friends of a Long Year* [https://luxagraf.net/friends/] + +If you're new, you can explore past posts here: [https://luxagraf.net/jrnl/] + +You can always: Unsubscribe [https://luxagraf.net{{subscriber.unsubscribe_activate_url}}] instantly. + +[https://luxagraf.net/] ✪ [https://luxagraf.net/friends/] diff --git a/app/lttr/templates/lttr/emails/range_html_email.html b/app/lttr/templates/lttr/emails/range_html_email.html new file mode 100644 index 0000000..09c2db3 --- /dev/null +++ b/app/lttr/templates/lttr/emails/range_html_email.html @@ -0,0 +1,239 @@ +{% load typogrify_tags %} + + + + + + + {{object.title}} + + + + + + + + + + + +
+
+ + + + +
+


+ ✪ Range — {{object.get_issue_str}} — {{object.pub_date|date:"F"}} {{object.pub_date|date:"j, Y"}}

+

{{object.title|safe|smartypants}}

+ +
+ + {% include "lib/friends_featured_img.html" with image=object.featured_image %} + +
+
+ + If you'd like to view a larger version, read some backstory, and see a video of the development process in Darktable, head on over to: https://luxagraf.net{{object.post.get_absolute_url}} + +
+
+
+
+ + + + + + + + + + diff --git a/app/lttr/templates/lttr/emails/range_plain_text_email.txt b/app/lttr/templates/lttr/emails/range_plain_text_email.txt new file mode 100644 index 0000000..2044e44 --- /dev/null +++ b/app/lttr/templates/lttr/emails/range_plain_text_email.txt @@ -0,0 +1,19 @@ +Greetings Range subscribers- + +I respect your desire for plain text email, but there really isn't a way to do a photo newsletter in plain text, except to say, here's a link to the web-based version: + + + +----- + +You're getting this email because you signed up for + +Scott Gilbertson's (luxagraf)[https://luxagraf.net/] photo newsletter, + +*Range* [https://luxagraf.net/range/] + +If you're new, you can explore past letters here: [https://luxagraf.net/range/] + +You can always: Unsubscribe [https://luxagraf.net{{subscriber.unsubscribe_activate_url}}] instantly. + +[https://luxagraf.net/] ✪ [https://luxagraf.net/range/] diff --git a/app/lttr/templates/lttr/emails/test-friends_html_email.html b/app/lttr/templates/lttr/emails/test-friends_html_email.html new file mode 100644 index 0000000..d1e2f5a --- /dev/null +++ b/app/lttr/templates/lttr/emails/test-friends_html_email.html @@ -0,0 +1,250 @@ +{% load typogrify_tags %} + + + + + + + {{object.title}} + + + + + + + + + + + +
+
+ + + + +
+


+ Friends of a Long Year — {{object.get_issue_str}} — {{object.pub_date|date:"F"}} {{object.pub_date|date:"j, Y"}}

+

{{object.title|safe|smartypants}}

+ +
+ + {% include "lib/friends_featured_img.html" with image=object.featured_image %} + +
+
+ + {{object.body_email_html|safe|smartypants}} + +
+
+
+
+ + + + + + + + + + diff --git a/app/lttr/templates/lttr/emails/test-friends_plain_text_email.txt b/app/lttr/templates/lttr/emails/test-friends_plain_text_email.txt new file mode 100644 index 0000000..286b527 --- /dev/null +++ b/app/lttr/templates/lttr/emails/test-friends_plain_text_email.txt @@ -0,0 +1,16 @@ + +{{ object.email_encode|safe }} + +----- + +You're getting this email because you signed up for + +Scott Gilbertson's (luxagraf)[https://luxagraf.net/] newsletter, + +*Friends of a Long Year* [https://luxagraf.net/friends/] + +If you're new, you can explore past letters here: [https://luxagraf.net/friends/] + +You can always: Unsubscribe [https://luxagraf.net{{subscriber.unsubscribe_activate_url}}] instantly. + +[https://luxagraf.net/] ✪ [https://luxagraf.net/friends/] diff --git a/app/lttr/templates/lttr/emails/test-range_html_email.html b/app/lttr/templates/lttr/emails/test-range_html_email.html new file mode 100644 index 0000000..d11479c --- /dev/null +++ b/app/lttr/templates/lttr/emails/test-range_html_email.html @@ -0,0 +1,239 @@ +{% load typogrify_tags %} + + + + + + + {{object.title}} + + + + + + + + + + + +
+
+ + + + +
+


+ ✪ Range — {{object.get_issue_str}} — {{object.pub_date|date:"F"}} {{object.pub_date|date:"j, Y"}}

+

{{object.title|safe|smartypants}}

+ +
+ + {% include "lib/friends_featured_img.html" with image=object.featured_image %} + +
+
+ + If you'd like to view a larger version, read some backstory, and see a video of the development process in Darktable, head on over to: https://luxagraf.net{{object.post.get_absolute_url}} + +
+
+
+
+ + + + + + + + + + diff --git a/app/lttr/templates/lttr/emails/test-range_plain_text_email.txt b/app/lttr/templates/lttr/emails/test-range_plain_text_email.txt new file mode 100644 index 0000000..970c42f --- /dev/null +++ b/app/lttr/templates/lttr/emails/test-range_plain_text_email.txt @@ -0,0 +1,19 @@ +Greetings Range subscribers- + +While I respect your desire for plain text email, there really isn't a way to do a photo newsletter in plain text other than to say, here's a link to the web-based version: + + + +----- + +You're getting this email because you signed up for + +Scott Gilbertson's (luxagraf)[https://luxagraf.net/] photo newsletter, + +*Range* [https://luxagraf.net/range/] + +If you're new, you can explore past letters here: [https://luxagraf.net/range/] + +You can always: Unsubscribe [https://luxagraf.net{{subscriber.unsubscribe_activate_url}}] instantly. + +[https://luxagraf.net/] ✪ [https://luxagraf.net/range/] diff --git a/app/lttr/templates/lttr/message/subscribe.html b/app/lttr/templates/lttr/message/subscribe.html new file mode 100644 index 0000000..56ccbcb --- /dev/null +++ b/app/lttr/templates/lttr/message/subscribe.html @@ -0,0 +1,23 @@ +{% 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 intro=newsletter.intro %} + +

Hola-

+ +

Someone, hopefully you, asked to subscribe to luxagraf's {{ title }} newsletter. {{ intro }}

+ +

Please click this link to active your subscription:

+ +https://{{ domain }}{{ url }} +{% endblocktrans %} +

cheers
+Scott

+ + diff --git a/app/lttr/templates/lttr/message/subscribe.txt b/app/lttr/templates/lttr/message/subscribe.txt new file mode 100644 index 0000000..edbc467 --- /dev/null +++ b/app/lttr/templates/lttr/message/subscribe.txt @@ -0,0 +1,9 @@ +Hola- + +Someone, hopefully you, asked to subscribe to luxagraf's {{ newsletter.title }} newsletter. {{ newsletter.intro }} + +Please click this link to active your subscription: + +https://{{ site.domain }}{{ subscription.subscribe_activate_url }} + +-Scott diff --git a/app/lttr/templates/lttr/message/subscribe_subject.txt b/app/lttr/templates/lttr/message/subscribe_subject.txt new file mode 100644 index 0000000..f4660e0 --- /dev/null +++ b/app/lttr/templates/lttr/message/subscribe_subject.txt @@ -0,0 +1 @@ +Confirm Your Subscription to {{newsletter.title}} diff --git a/app/lttr/templates/lttr/message/unsubscribe.html b/app/lttr/templates/lttr/message/unsubscribe.html new file mode 100644 index 0000000..4b1a86b --- /dev/null +++ b/app/lttr/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/app/lttr/templates/lttr/message/unsubscribe.txt b/app/lttr/templates/lttr/message/unsubscribe.txt new file mode 100644 index 0000000..ab31fa5 --- /dev/null +++ b/app/lttr/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/app/lttr/templates/lttr/message/unsubscribe_subject.txt b/app/lttr/templates/lttr/message/unsubscribe_subject.txt new file mode 100644 index 0000000..49c68ef --- /dev/null +++ b/app/lttr/templates/lttr/message/unsubscribe_subject.txt @@ -0,0 +1 @@ +{% load i18n %}{{ newsletter.title }} - {% trans "Confirm unsubscription" %} diff --git a/app/lttr/templates/lttr/newslettermailing_detail.html b/app/lttr/templates/lttr/newslettermailing_detail.html new file mode 100644 index 0000000..1a89200 --- /dev/null +++ b/app/lttr/templates/lttr/newslettermailing_detail.html @@ -0,0 +1,155 @@ +{% extends 'base.html' %} +{% load typogrify_tags %} +{% block sitename %} + + Luxagraf: thoughts on ecology, culture, travel, photography, walking and other ephemera + {%endblock%} + + {%block extrahead%} + + + + + + + + + + + + + + + + + + +{%endblock%} +{%block bodyid%}id="home" class="archive"{%endblock%} + +{% block primary %} +{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %} +
+
+
+ {%with image=object.featured_image%} + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + {%endwith%} +
+
+
+

{{object.title|smartypants|safe}}

+ {% if object.subtitle %}

{{object.subtitle|smartypants|safe}}

{%endif%} +
+ {% if object.location %}
+

{% if object.location.country_name == "United States" %}{{object.location.name|smartypants|safe}}, {{object.location.state_name|safe}}, U.S.{%else%}{{object.location.name|smartypants|safe}}, {{object.location.country_name|safe}}{%endif%}

+ – Map +
{%endif%} + + +
+
+
+ {{object.body_html|safe|smartypants}} +
+ {%if wildlife or object.field_notes.all or object.books.all %}{%endif%} +
+ {% with object.get_next_published as next %} + {% with object.get_previous_published as prev %} + + {% if object.related.all %}
+ +
{%endif%} +
+{% endblock %} + +{% block js %}{% comment %} {% endcomment%}{% endblock%} diff --git a/app/lttr/templates/lttr/postcard_subscribe.html b/app/lttr/templates/lttr/postcard_subscribe.html new file mode 100644 index 0000000..7f96503 --- /dev/null +++ b/app/lttr/templates/lttr/postcard_subscribe.html @@ -0,0 +1,29 @@ +{% load typogrify_tags %} + + + + + + + + + +
{% csrf_token %} + {% for field in form %} +
+ {{field.label_tag}} + {%ifequal field.name "address"%}
{{ field }}
{%else%}{{field}}{%endifequal%} +
+ {% if forloop.last %}{%endif%} + {% if field.errors %}{{field.errors}}{% endif %} + {%endfor%} +
+ + diff --git a/app/lttr/templates/lttr/postcard_subscribed.html b/app/lttr/templates/lttr/postcard_subscribed.html new file mode 100644 index 0000000..464fb72 --- /dev/null +++ b/app/lttr/templates/lttr/postcard_subscribed.html @@ -0,0 +1,24 @@ +{% extends 'base.html' %} +{% load typogrify_tags %} + +{% block pagetitle %}Thanks for subscribing! | luxagraf.net {% endblock %} +{% block metadescription %}Thank you, I appreciate you joining the club{% endblock %} + +{% block primary %} + +
+
+

Nicely Done!

+

We will send you a postcard in the near future.

+
+
+{%endblock%} diff --git a/app/lttr/templates/lttr/range_detail.html b/app/lttr/templates/lttr/range_detail.html new file mode 100644 index 0000000..008a572 --- /dev/null +++ b/app/lttr/templates/lttr/range_detail.html @@ -0,0 +1,184 @@ +{% extends 'base.html' %} +{% load typogrify_tags %} +{% load get_image_by_size %} +{%block htmlclass%}{%endblock%} +{% block sitename %} + + {{object.title|safe}} by Scott Gilbertson + {%endblock%} + + {%block extrahead%} + + + + + + + + + + + + + + + + + + +{%endblock%} +{%block bodyid%}id="home" class="friends"{%endblock%} +{% block breadcrumbs %} +{% endblock %} +{% block primary %} +
+
+ {%with image=object.featured_image%} + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + +
+ {{image.exif_make}} {{image.exif_model}} {%if image.exif_lens %} with a {{image.exif_lens}} lens, {%endif%} f/{{image.exif_aperture}} for {{image.exif_exposure}} sec at {{image.exif_iso}} ISO. +
+
{%endwith%} +
+
+

{{object.title|smartypants|safe}}

+ +
+
+ {{object.body_html|safe|smartypants}} +
+ {%if object.books.all %}
+ + {% with object.get_next_published as next %} + {% with object.get_previous_published as prev %} + {%endwith%}{%endwith%} + + + {% if object.related.all %}
+ +
{%endif%} +
+{% endblock %} + +{% block js %}{% comment %} {% endcomment%}{% endblock%} + + diff --git a/app/lttr/templates/lttr/range_list.html b/app/lttr/templates/lttr/range_list.html new file mode 100644 index 0000000..c6875e9 --- /dev/null +++ b/app/lttr/templates/lttr/range_list.html @@ -0,0 +1,44 @@ +{% extends 'base.html' %} +{% load typogrify_tags %} +{% block pagetitle %}Luxagraf | Range {% endblock %} +{% block metadescription %}A weekly photo, developed.{% endblock %} +{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %} +{% block primary %} +
{% for object in object_list %}{% if forloop.first %} +
+ {%with image=object.featured_image%} + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + {%endwith%}{%endif%}{%endfor%} +
+
+

Range

+

A weekly photo, developed.

+

Please join us by dropping your email in the form below:

+ +

Range is a weekly mailing of a single photograph.

+

If you're interested there is also a link to a video of the RAW image processing in darktable, and sometimes a few words about the process. But the primary purpose is to deliver a single photo to your inbox. Simple and fun.

+

Yes, I know about Instagram. This is an attempt to reclaim that space, sharing photos with friends, but without all the distractions of the corporate social web, without the endless scroll of photos, likes, stories, comments, whatever. This is just an image delivered once a week to your inbox. I've been trying to think of a way to make it reciprocal, so you can send a picture to my inbox. If you have ideas, email me.

+

Unsubscribing is easy. It's self-hosted and respects your privacy. If you don't want an email, there's also an RSS feed, and it's all archived below.

+

There's also the Friends of a Long Year newsletter if you want some stories in your inbox.

+
+

Images

+
{% for object in object_list %} + {% endfor %} +
+
+{%endblock%} + +

If you're not familiar, darktable is open source raw image developer. It's free, you can download a copy for Linux, macOS, or Windows. The darktable user manual is very helpful if you're brand new. I also recommend Bruce Williams' darktable videos, and Boris Hajdukovic's videos, which were the inspiration for what you see here.

+

I'm no expert either, so feel free to hit reply and let me know if I get something wrong.

diff --git a/app/lttr/templates/lttr/range_subscribe.html b/app/lttr/templates/lttr/range_subscribe.html new file mode 100644 index 0000000..e73ca73 --- /dev/null +++ b/app/lttr/templates/lttr/range_subscribe.html @@ -0,0 +1,23 @@ +{% load typogrify_tags %} + + + + + + + + + + {% if field.errors %}{{field.errors}}{% endif %} + {%endfor%} + + diff --git a/app/lttr/templates/lttr/subscribe.html b/app/lttr/templates/lttr/subscribe.html new file mode 100644 index 0000000..e73ca73 --- /dev/null +++ b/app/lttr/templates/lttr/subscribe.html @@ -0,0 +1,23 @@ +{% load typogrify_tags %} + + + + + + + + + + {% if field.errors %}{{field.errors}}{% endif %} + {%endfor%} + + diff --git a/app/lttr/templates/lttr/subscribed.html b/app/lttr/templates/lttr/subscribed.html new file mode 100644 index 0000000..43278cf --- /dev/null +++ b/app/lttr/templates/lttr/subscribed.html @@ -0,0 +1,24 @@ +{% extends 'base.html' %} +{% load typogrify_tags %} + +{% block pagetitle %}Thanks for subscribing! | luxagraf.net {% endblock %} +{% block metadescription %}Thank you, I appreciate you joining the club{% endblock %} + +{% block primary %} + +
+
+

Thanks, You're Almost There.

+

Check your email for a link to confirm your subscription

+
+
+{%endblock%} diff --git a/app/lttr/templates/lttr/unsubscribe.html b/app/lttr/templates/lttr/unsubscribe.html new file mode 100644 index 0000000..993ea9f --- /dev/null +++ b/app/lttr/templates/lttr/unsubscribe.html @@ -0,0 +1,24 @@ +{% 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 unsubscribed, so long friend

+

If you clicked by mistake you can always rejoin our merry band.

+
+
+{%endblock%} -- cgit v1.2.3