Skip to content

Commit

Permalink
Add new link request email txt templates
Browse files Browse the repository at this point in the history
Templates inspired by django-allauth, subject to change.
  • Loading branch information
Alschn committed Feb 4, 2024
1 parent a02fa62 commit 0775420
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions emails/templates/emails/base.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% load i18n %}{% autoescape off %}{% blocktrans with site_name=current_site.name %}Hello from {{ site_name }}!{% endblocktrans %}

{% block content %}{% endblock content %}

{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Thank you for using {{ site_name }}!
{{ site_domain }}{% endblocktrans %}
{% endautoescape %}
8 changes: 8 additions & 0 deletions emails/templates/emails/links/new_link_request_message.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "emails/base.txt" %}
{% load i18n %}

{% block content %}{% autoescape off %}{% blocktrans with frontend_url=frontend_url %}Your daily VibeLink is here!

Go to our page and submit your favourite link.

{{ frontend_url }}{% endblocktrans %}{% endautoescape %}{% endblock content %}
4 changes: 4 additions & 0 deletions emails/templates/emails/links/new_link_request_subject.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% load i18n %}
{% autoescape off %}
{% blocktrans %}Submit Your Daily Link{% endblocktrans %}
{% endautoescape %}

0 comments on commit 0775420

Please sign in to comment.