diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-22 23:06:27 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-22 23:06:27 -0400 |
commit | e14d3bcb9c45de0872f3b71c7637e371384d22e5 (patch) | |
tree | 222603a6054ab737e74df8f45466cc165bbce6d9 | |
parent | 185f17cd0a8989daff1ae0dd88392c018b557e1f (diff) | |
download | askbot-e14d3bcb9c45de0872f3b71c7637e371384d22e5.tar.gz askbot-e14d3bcb9c45de0872f3b71c7637e371384d22e5.tar.bz2 askbot-e14d3bcb9c45de0872f3b71c7637e371384d22e5.zip |
added a small preamble to each post in the thread in the email response
-rw-r--r-- | askbot/models/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
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<br/>' + ) % { + '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 |