# HG changeset patch # User Lennard de Rijk # Date 1244095977 -7200 # Node ID b5c74f077f0a849f80e0756e10024b6e66b8572d # Parent 8f3771ff383bde358a36b81028f99be242c3ec15 Added a link to the website where the user has registered to the welcome email. Fixes Issue 630. diff -r 8f3771ff383b -r b5c74f077f0a app/soc/logic/helper/notifications.py --- 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 diff -r 8f3771ff383b -r b5c74f077f0a app/soc/templates/soc/mail/welcome.html --- 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