FeatureRequest: add project name to patch update notification
Wolfram Sang
wsa at the-dreams.de
Fri May 17 20:23:05 EST 2013
Hi,
I noticed that the project name is not included in the
patch-update-notification-mail. I guess this could be useful in case one
patch has been sent to multiple lists. Pseudo patch follows.
Thanks,
Wolfram
diff --git a/templates/patchwork/patch-change-notification-subject.text b/templates/patchwork/patch-change-notification-subject.text
index 02ee55b..6f9e5d6 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
+Patch update notification for {{project|shortname}}: {{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..d11bc24 100644
--- a/templates/patchwork/patch-change-notification.mail
+++ b/templates/patchwork/patch-change-notification.mail
@@ -1,6 +1,6 @@
Hello,
-The following patch{{notifications|length|pluralize:"es"}} (submitted by you) {{notifications|length|pluralize:"has,have"}} been updated in patchwork:
+The following patch{{notifications|length|pluralize:"es"}} (submitted by you) {{notifications|length|pluralize:"has,have"}} been updated in the patchwork repository for {{project|shortname}} ({{project|longname}}):
{% for notification in notifications %}
* {{notification.patch.name|safe}}
- http://{{site.domain}}{{notification.patch.get_absolute_url}}
More information about the Patchwork
mailing list