Adds email template layout and formatting

This commit is contained in:
Mouse Reeve
2021-03-21 11:43:14 -07:00
parent 33b5639af0
commit d8a20175b6
15 changed files with 152 additions and 20 deletions

View File

@ -1,2 +1,17 @@
{% extends 'email/html_layout.html' %}
{% load i18n %}
<a href="{{ invite_link }}">{% blocktrans %}Join {{ site_name }}{% endblocktrans %}</a>
{% block content %}
<p>
{% blocktrans %}You're invited to join {{ site_name }}!{% endblocktrans %}
</p>
{% trans "Join Now" as text %}
{% include 'email/snippets/action.html' with path=invite_link text=text %}
<p>
{% url 'code-of-conduct' as coc_path %}
{% url 'about' as about_path %}
{% blocktrans %}Learn more <a href="https://{{ domain }}{{ about_path }}">about this instance</a>.{% endblocktrans %}
</p>
{% endblock %}

View File

@ -1,2 +1,2 @@
{% load i18n %}
{% blocktrans %}You're invited! Join {{ site_name }}{% endblocktrans %}
{% blocktrans %}You're invited to join {{ site_name }}!{% endblocktrans %}

View File

@ -1,2 +1,10 @@
{% extends 'email/text_layout.html' %}
{% load i18n %}
{% blocktrans %}Join {{ site_name }}: {{ invite_link }}{% endblocktrans %}
{% block content %}
{% blocktrans %}You're invited to join {{ site_name }}! Click the link below to create an account.{% endblocktrans %}
{{ invite_link }}
{% trans "Learn more about this instance:" %} https://{{ domain }}{% url 'about' %}
{% endblock %}