forked from mozilla/pontoon
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Base email template for emails sent from the Messaging Center (mo…
…zilla#3491) Also: Factor out `send_manual_emails()` and move it to `pontoon.messaging.emails`.
- Loading branch information
Showing
3 changed files
with
60 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends 'messaging/emails/base.html' %} | ||
|
||
{% block title %}{{ subject }}{% endblock %} | ||
|
||
{% block extend_css %}{% endblock %} | ||
|
||
{% block header %}Hello.{% endblock %} | ||
|
||
{% block subheader %}{% endblock %} | ||
|
||
{% block content_class %}{% endblock %} | ||
|
||
{% block content %} | ||
{{ content|safe }} | ||
{% endblock %} | ||
|
||
{% block footer %} | ||
{% if not is_transactional %} | ||
{{ settings.EMAIL_COMMUNICATIONS_FOOTER_PRE_TEXT }}<br> | ||
To no longer receive emails like these, unsubscribe here: <a href="{{ full_url('pontoon.messaging.unsubscribe', user.profile.unique_id) }}">Unsubscribe</a>. | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters