From 8c5c4f6d0b4746bee34150f5d4ab20586eccf197 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Wed, 11 Dec 2013 23:21:44 -0500 Subject: Bug 948991 - Congratulations on having your first patch approved mail should mention which patch it refers to r=glob --- extensions/ContributorEngagement/Extension.pm | 6 +++--- .../template/en/default/contributor/email.txt.tmpl | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'extensions/ContributorEngagement') diff --git a/extensions/ContributorEngagement/Extension.pm b/extensions/ContributorEngagement/Extension.pm index 64fcb9273..0e86eb4ca 100644 --- a/extensions/ContributorEngagement/Extension.pm +++ b/extensions/ContributorEngagement/Extension.pm @@ -105,9 +105,9 @@ sub _send_mail { my ($attachment, $timestamp) = @_; my $vars = { - date => format_time($timestamp, '%a, %d %b %Y %T %z', 'UTC'), - to_user => $attachment->attacher->email, - from_user => EMAIL_FROM, + date => format_time($timestamp, '%a, %d %b %Y %T %z', 'UTC'), + attachment => $attachment, + from_user => EMAIL_FROM, }; my $msg; diff --git a/extensions/ContributorEngagement/template/en/default/contributor/email.txt.tmpl b/extensions/ContributorEngagement/template/en/default/contributor/email.txt.tmpl index d4601542d..915ebd912 100644 --- a/extensions/ContributorEngagement/template/en/default/contributor/email.txt.tmpl +++ b/extensions/ContributorEngagement/template/en/default/contributor/email.txt.tmpl @@ -7,7 +7,7 @@ #%] [% PROCESS "global/variables.none.tmpl" %] From: [% from_user FILTER none %] -To: [% to_user FILTER none %] +To: [% attachment.attacher.email FILTER none %] Subject: Congratulations on having your first patch approved Date: [% date FILTER none %] X-Bugzilla-Type: contributor-engagement @@ -15,6 +15,8 @@ X-Bugzilla-Type: contributor-engagement Congratulations on having your first patch approved, and thank you for your contribution to Mozilla. +[%+ urlbase %]attachment.cgi?id=[% attachment.id FILTER uri %]&action=edit + The next step is to get the patch actually checked in to our repository. For more information about how to make that happen, check out this post: -- cgit v1.2.3-24-g4f1b