Made all links in e-mail verbatim to solve Issue 250.
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 08 Mar 2009 18:09:04 +0000
changeset 1754 63fa0e7f8f47
parent 1753 564f3adf4acf
child 1755 972c546f0810
Made all links in e-mail verbatim to solve Issue 250. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/templates/soc/mail/new_notification.html
app/soc/templates/soc/mail/welcome.html
app/soc/views/models/org_app.py
--- a/app/soc/templates/soc/mail/new_notification.html	Sun Mar 08 17:41:02 2009 +0000
+++ b/app/soc/templates/soc/mail/new_notification.html	Sun Mar 08 18:09:04 2009 +0000
@@ -16,7 +16,7 @@
 
 {% block content %}
 You have received a new notification entitled "{{ notification.subject }}".
-To read, respond to, or delete this notification please click <a href="{{ notification_url }}">here</a>.
+To read, respond to, or delete this notification please visit {{ notification_url }}.
 {% endblock %}
 
 {% block signature %}
--- a/app/soc/templates/soc/mail/welcome.html	Sun Mar 08 17:41:02 2009 +0000
+++ b/app/soc/templates/soc/mail/welcome.html	Sun Mar 08 18:09:04 2009 +0000
@@ -21,8 +21,8 @@
 {% ifequal site_name "Melange" %}
 Currently Melange is still under development, if you run into any trouble you
 can usually find us at #melange on freenode IRC network.
-If you find any bugs,please report them to our
-<a href="http://code.google.com/p/soc/issues/list">Issue Tracker</a>.
+If you find any bugs,please report them to our Issue tracker which can be found 
+at http://code.google.com/p/soc/issues/list.
 {% endifequal %}
 {% endblock %}
 
--- a/app/soc/views/models/org_app.py	Sun Mar 08 17:41:02 2009 +0000
+++ b/app/soc/views/models/org_app.py	Sun Mar 08 18:09:04 2009 +0000
@@ -210,7 +210,7 @@
         # use the accepted template and subject
         template = params['accepted_mail_template']
         context['subject'] = 'Congratulations!'
-        context['HTTP_host'] = os.environ['HTTP_HOST']
+        context['HTTP_host'] = 'http://%s' %(os.environ['HTTP_HOST'])
       elif status == 'rejected':
         # use the rejected template and subject
         template = params['rejected_mail_template']