Added a link to the website where the user has registered to the welcome email.
authorLennard de Rijk <ljvderijk@gmail.com>
Thu, 04 Jun 2009 08:12:57 +0200
changeset 2378 b5c74f077f0a
parent 2377 8f3771ff383b
child 2380 f23025455742
Added a link to the website where the user has registered to the welcome email. Fixes Issue 630.
app/soc/logic/helper/notifications.py
app/soc/templates/soc/mail/welcome.html
--- 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