From 32f6f7a4daeb7941c2a94d40677f9780b5a65654 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 2 Jun 2010 10:44:02 -0500 Subject: Rename todolist email template More in line with our other templates that have .txt extensions. Signed-off-by: Dan McGee --- templates/todolists/addedtotodolist | 16 ---------------- templates/todolists/email_notification.txt | 16 ++++++++++++++++ todolists/views.py | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 templates/todolists/addedtotodolist create mode 100644 templates/todolists/email_notification.txt diff --git a/templates/todolists/addedtotodolist b/templates/todolists/addedtotodolist deleted file mode 100644 index 24fded59..00000000 --- a/templates/todolists/addedtotodolist +++ /dev/null @@ -1,16 +0,0 @@ - -* Note: this is an automated message - -The following package: - - Package Name: {{ pkg.pkgname }} - Architecture: {{ pkg.arch.name }} - Repository: {{ pkg.repo.name }} - ({{ weburl }}) - -has been added to this todo list: - -Creator: {{todolist.creator.get_full_name}} -Name: {{todolist.name}} -Description: -{{todolist.description|wordwrap:69}} diff --git a/templates/todolists/email_notification.txt b/templates/todolists/email_notification.txt new file mode 100644 index 00000000..24fded59 --- /dev/null +++ b/templates/todolists/email_notification.txt @@ -0,0 +1,16 @@ + +* Note: this is an automated message + +The following package: + + Package Name: {{ pkg.pkgname }} + Architecture: {{ pkg.arch.name }} + Repository: {{ pkg.repo.name }} + ({{ weburl }}) + +has been added to this todo list: + +Creator: {{todolist.creator.get_full_name}} +Name: {{todolist.name}} +Description: +{{todolist.description|wordwrap:69}} diff --git a/todolists/views.py b/todolists/views.py index f9024eb9..155e522b 100644 --- a/todolists/views.py +++ b/todolists/views.py @@ -141,7 +141,7 @@ def send_todolist_email(todo): 'todolist': todo.list, 'weburl': 'http://www.archlinux.org'+ todo.pkg.get_absolute_url() } - t = loader.get_template('todolists/addedtotodolist') + t = loader.get_template('todolists/email_notification.txt') c = Context(page_dict) send_mail('arch: Package [%s] added to Todolist' % todo.pkg.pkgname, t.render(c), -- cgit v1.2.3-55-g3dc8