diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-17 12:23:05 +0200 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-06-16 17:25:44 +0800 |
commit | 4e7b62c51b958acad9d87b435571a22113a43d35 (patch) | |
tree | bfe480694c0df84b5c33c6560eb507c5ec20926e /templates | |
parent | 3c9319711a8b4cc91016043f80129362ab438dfc (diff) | |
download | patchwork-4e7b62c51b958acad9d87b435571a22113a43d35.tar patchwork-4e7b62c51b958acad9d87b435571a22113a43d35.tar.gz |
notifications: add project name to patch update notification
Based on a feature request & patch from Wolfram Sang
<wsa@the-dreams.de>.
Notifications may span multiple projects, so include a summary in the
subject line, and detail in the header.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/patchwork/patch-change-notification-subject.text | 2 | ||||
-rw-r--r-- | templates/patchwork/patch-change-notification.mail | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/templates/patchwork/patch-change-notification-subject.text b/templates/patchwork/patch-change-notification-subject.text index 02ee55b..c9d96d4 100644 --- a/templates/patchwork/patch-change-notification-subject.text +++ b/templates/patchwork/patch-change-notification-subject.text @@ -1 +1 @@ -Patch update notification: {{notifications|length}} patch{{notifications|length|pluralize:"es"}} updated +[{{ projects|join:"," }}] Patch notification: {{notifications|length}} patch{{notifications|length|pluralize:"es"}} updated diff --git a/templates/patchwork/patch-change-notification.mail b/templates/patchwork/patch-change-notification.mail index 19a2a09..b7e2cfe 100644 --- a/templates/patchwork/patch-change-notification.mail +++ b/templates/patchwork/patch-change-notification.mail @@ -2,8 +2,9 @@ Hello, The following patch{{notifications|length|pluralize:"es"}} (submitted by you) {{notifications|length|pluralize:"has,have"}} been updated in patchwork: {% for notification in notifications %} - * {{notification.patch.name|safe}} + * {{notification.patch.project.linkname}}: {{notification.patch.name|safe}} - http://{{site.domain}}{{notification.patch.get_absolute_url}} + - for: {{notification.patch.project.name}} was: {{notification.orig_state}} now: {{notification.patch.state}} {% endfor %} |