summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-04 19:39:53 +0100
committerDan McGee <dan@archlinux.org>2011-03-04 19:39:56 +0100
commit65e965c8f76677904f5d98965e13bf89726247d4 (patch)
tree28a847d789286be076091387898f43f95080ebb0 /templates
parent9d12c0fac5c0580b30c6bf8f578a358dc22afdff (diff)
downloadarchweb-65e965c8f76677904f5d98965e13bf89726247d4.tar.gz
archweb-65e965c8f76677904f5d98965e13bf89726247d4.tar.xz
Send only one email per todolist
Customize each email on a per-maintainer basis and list all the relevant packages inside, rather than spamming people. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/packages/outofdate.txt4
-rw-r--r--templates/todolists/email_notification.txt13
2 files changed, 5 insertions, 12 deletions
diff --git a/templates/packages/outofdate.txt b/templates/packages/outofdate.txt
index d8b7400..93abea0 100644
--- a/templates/packages/outofdate.txt
+++ b/templates/packages/outofdate.txt
@@ -1,6 +1,4 @@
-{% autoescape off %}* Note: this is an automated message
-
-{{ email }} wants to notify you that the following package may be out-of-date:
+{% autoescape off %}{{ email }} wants to notify you that the following package may be out-of-date:
Package Name: {{ pkg.pkgname }}
Architecture: {{ pkg.arch.name }}
diff --git a/templates/todolists/email_notification.txt b/templates/todolists/email_notification.txt
index abe1dbf..1825912 100644
--- a/templates/todolists/email_notification.txt
+++ b/templates/todolists/email_notification.txt
@@ -1,14 +1,9 @@
-{% autoescape off %}* Note: this is an automated message
+{% autoescape off %}The todo list {{ todolist.name }} has had the following packages added to it for which you are a maintainer:
-The following package:
-
- Package Name: {{ pkg.pkgname }}
- Architecture: {{ pkg.arch.name }}
- Repository: {{ pkg.repo.name }}
- ({{ weburl }})
-
-has been added to this todo list:
+{% for tpkg in todo_packages %}
+{{ tpkg.pkg.repo.name|lower }}/{{ tpkg.pkg.pkgname }} ({{ tpkg.pkg.arch.name }}) - {{ tpkg.pkg.get_full_url }}{% endfor %}
+Todo list information:
Creator: {{todolist.creator.get_full_name}}
Name: {{todolist.name}}
Description: