From e14d3bcb9c45de0872f3b71c7637e371384d22e5 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Thu, 22 Mar 2012 23:06:27 -0400 Subject: added a small preamble to each post in the thread in the email response --- askbot/models/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/askbot/models/__init__.py b/askbot/models/__init__.py index 029816af..089c83a5 100644 --- a/askbot/models/__init__.py +++ b/askbot/models/__init__.py @@ -2382,6 +2382,13 @@ def format_instant_notification_email( if parent_post is None: break quote_level += 1 + content_preview += _( + 'In reply to %(user)s %(post)s of %(date)s
' + ) % { + 'user': parent_post.author.username, + 'post': _(parent_post.post_type), + 'date': parent_post.added_at.strftime('%I:%M %p, %d %b %Y') + } content_preview += parent_post.format_for_email(quote_level = quote_level) current_post = parent_post -- cgit v1.2.3-1-g7c22