[extensions-web] Improve mail templates for reviewing
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Improve mail templates for reviewing
- Date: Sat, 19 Nov 2011 21:37:06 +0000 (UTC)
commit 7c8a6d8328300db9a7894a3e6f068f00af4f11b2
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Nov 19 16:36:55 2011 -0500
Improve mail templates for reviewing
.../review/templates/review/reviewed_mail.txt | 10 +++++++---
.../templates/review/reviewed_mail_subject.txt | 2 +-
sweettooth/review/views.py | 1 +
3 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/sweettooth/review/templates/review/reviewed_mail.txt b/sweettooth/review/templates/review/reviewed_mail.txt
index c9660ac..a93ad61 100644
--- a/sweettooth/review/templates/review/reviewed_mail.txt
+++ b/sweettooth/review/templates/review/reviewed_mail.txt
@@ -1,8 +1,12 @@
-Your extension, "{{ extension.name }}", version {{ version.version }} has been reviewed. You can see the review here:
+{{ extension.creator }}'s extension, "{{ extension.name }}", version {{ version.version }} has a new review:
-{{ url }}
+{{ review.reviewer }} posted a review on {{ review.date|date:"F j, Y" }}:
+
+{{ review.comments }}
-Please use the review page to follow up with any comments or concerns.
+Please use the review page to follow up:
+
+{{ url }}
â
diff --git a/sweettooth/review/templates/review/reviewed_mail_subject.txt b/sweettooth/review/templates/review/reviewed_mail_subject.txt
index 0fdc549..0548a86 100644
--- a/sweettooth/review/templates/review/reviewed_mail_subject.txt
+++ b/sweettooth/review/templates/review/reviewed_mail_subject.txt
@@ -1 +1 @@
-GNOME Shell Extensions â Your extension, "{{ extension.name }}", v{{ version.version }} has been reviewed.
+GNOME Shell Extensions â {{ extension.creator }}'s extension, "{{ extension.name }}", v{{ version.version }}, has a new review
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index 35a4b93..94133cb 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -298,6 +298,7 @@ def send_email_on_reviewed(sender, request, version, review, **kwargs):
data = dict(version=version,
extension=extension,
+ review=review,
url=url)
subject = render_to_string('review/reviewed_mail_subject.txt', data).strip()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]