Added a link to the website where the user has registered to the welcome email.
Fixes Issue 630.
--- a/app/soc/logic/helper/notifications.py Mon Jun 01 23:42:36 2009 +0200
+++ b/app/soc/logic/helper/notifications.py Thu Jun 04 08:12:57 2009 +0200
@@ -272,13 +272,14 @@
messageProperties = {
'to_name': user_entity.name,
'sender_name': sender_name,
- 'site_name': site_name,
'to': to,
'sender': sender,
'subject': DEF_WELCOME_MSG_FMT % {
'site_name': site_name,
'name': user_entity.name
- }
+ },
+ 'site_name': site_name,
+ 'site_location': 'http://%s' % os.environ['HTTP_HOST'],
}
# send out the message using the default welcome template
--- a/app/soc/templates/soc/mail/welcome.html Mon Jun 01 23:42:36 2009 +0200
+++ b/app/soc/templates/soc/mail/welcome.html Thu Jun 04 08:12:57 2009 +0200
@@ -16,7 +16,7 @@
{% block content %}
Welcome to {{ site_name }}. If you are reading this it means you have successfully registered as a user
-on our website.
+on {{ site_location }}.
{% ifequal site_name "Melange" %}
Currently Melange is still under development, if you run into any trouble you