From 8309199e51a1c9770780e394056db15f882e9e33 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 27 Apr 2014 11:45:01 +0200 Subject: added templates for emails --- pyaggr3g470r/templates/emails/new_account.html | 9 +++++++++ pyaggr3g470r/templates/emails/new_account.txt | 11 +++++++++++ pyaggr3g470r/templates/emails/new_article.html | 1 + pyaggr3g470r/templates/emails/new_article.txt | 1 + 4 files changed, 22 insertions(+) create mode 100644 pyaggr3g470r/templates/emails/new_account.html create mode 100644 pyaggr3g470r/templates/emails/new_account.txt create mode 100644 pyaggr3g470r/templates/emails/new_article.html create mode 100644 pyaggr3g470r/templates/emails/new_article.txt (limited to 'pyaggr3g470r/templates/emails') diff --git a/pyaggr3g470r/templates/emails/new_account.html b/pyaggr3g470r/templates/emails/new_account.html new file mode 100644 index 00000000..f6139507 --- /dev/null +++ b/pyaggr3g470r/templates/emails/new_account.html @@ -0,0 +1,9 @@ +

Hello {{ user.firstname }} {{ user.lastname }},

+ +

An account has been created for you. +You can now access the pyAggr3g470r platform. +Your login is your e-mail address and your password is:

+ +

{{ password }}

+ +

Regards,

\ No newline at end of file diff --git a/pyaggr3g470r/templates/emails/new_account.txt b/pyaggr3g470r/templates/emails/new_account.txt new file mode 100644 index 00000000..6397f502 --- /dev/null +++ b/pyaggr3g470r/templates/emails/new_account.txt @@ -0,0 +1,11 @@ +Hello {{ user.firstname }} {{ user.lastname }}, + +An account has been created for you. +You can now access the pyAggr3g470r platform ({{ platform_url }}). +Your login is your e-mail address and your password is: + +--- +{{ password }} +--- + +Regards, \ No newline at end of file diff --git a/pyaggr3g470r/templates/emails/new_article.html b/pyaggr3g470r/templates/emails/new_article.html new file mode 100644 index 00000000..5a6b7c4a --- /dev/null +++ b/pyaggr3g470r/templates/emails/new_article.html @@ -0,0 +1 @@ +{{ article.content | safe }} \ No newline at end of file diff --git a/pyaggr3g470r/templates/emails/new_article.txt b/pyaggr3g470r/templates/emails/new_article.txt new file mode 100644 index 00000000..9b800855 --- /dev/null +++ b/pyaggr3g470r/templates/emails/new_article.txt @@ -0,0 +1 @@ +{{ article.content | striptags }} \ No newline at end of file -- cgit