From patchwork Fri May 17 10:23:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 244610 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 0B3522C00C9 for ; Fri, 17 May 2013 20:21:39 +1000 (EST) Received: from pokefinder.org (sauhun.de [89.238.76.85]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 670212C00A0 for ; Fri, 17 May 2013 20:21:35 +1000 (EST) Received: from p5b38787f.dip0.t-ipconnect.de ([91.56.120.127]:39989 helo=localhost) by pokefinder.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1UdHn1-0003Wn-LK for patchwork@lists.ozlabs.org; Fri, 17 May 2013 12:21:31 +0200 Date: Fri, 17 May 2013 12:23:05 +0200 From: Wolfram Sang To: patchwork@lists.ozlabs.org Subject: FeatureRequest: add project name to patch update notification Message-ID: <20130517102301.GJ17056@katana> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" 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}}