[extensions-web] review: Fix auto-approved mail



commit 50247282b17379a44ca58c9b7907a64cbfb3d505
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Apr 7 16:16:08 2012 -0300

    review: Fix auto-approved mail

 .../review/templates/review/auto_approved_mail.txt |   11 ++++++++---
 sweettooth/review/views.py                         |    3 ++-
 2 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/sweettooth/review/templates/review/auto_approved_mail.txt b/sweettooth/review/templates/review/auto_approved_mail.txt
index cbf5278..9d3c7a7 100644
--- a/sweettooth/review/templates/review/auto_approved_mail.txt
+++ b/sweettooth/review/templates/review/auto_approved_mail.txt
@@ -1,9 +1,14 @@
 A new extension version, "{{ extension.name }}", version {{ version.version }}, was auto-approved.
 
-The diff between this version and the last approved version contained these changed files:
-{% for file in changes %}
-  * {{ file }}
+The diff between this version and the last approved version looks like this:
+{% for file in changeset.changed %}
+  M {{ file }}
 {% endfor %}
+{% for file in changeset.added %}
+  + {{ file }}
+{% endfor %}
+
+(where M means "modified" and "+" means "added")
 
 The full review details can be found at {{ review_url }}, and the extension's version page
 can be found at {{ version_url }}.
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index 9657137..5344d56 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -358,7 +358,8 @@ def send_email_auto_approved(request, version, changeset):
     recipient_list.append(extension.creator.email)
 
     data = dict(version_url=version_url,
-                review_url=review_url)
+                review_url=review_url,
+                changeset=changeset)
 
     message = render_mail(version, 'auto_approved', data)
     message.to = recipient_list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]