Update: status email subject capitalized and period removed at the end
authorYasin Rahman <loic.baron@lip6.fr>
Mon, 18 May 2015 15:59:38 +0000 (17:59 +0200)
committerYasin Rahman <loic.baron@lip6.fr>
Mon, 18 May 2015 15:59:38 +0000 (17:59 +0200)
portal/actions.py
portal/templates/user_request_denied.html
portal/templates/user_request_denied.txt

index 0375874..7e231d2 100644 (file)
@@ -908,7 +908,7 @@ def send_status_email(request, ctx, user_email, obj_type, status):
         sender =  render_to_string(theme.template, ctx)
         sender = sender.replace('\n', '')
                        
-        subject = obj_type + ' request '+ status +'.'
+        subject = obj_type.title() + ' request '+ status
     
         msg = EmailMultiAlternatives(subject, text_content, sender, [user_email])
         msg.attach_alternative(html_content, "text/html")
index 1521b68..825bc14 100644 (file)
@@ -2,7 +2,7 @@
 <br>
 <p>Dear {{first_name}} {{last_name}},</p>
 <p></p>
-<p>You have recently registered as a user to {{theme.label}} portal. We are sorry to inform you that, a manager of your institution has rejected your request. Please contact the manager of your institution for further information. For any other queries, contact us by replying to this email.</p>
+<p>You have recently registered as a user to {{theme.label}} portal. We are sorry to inform you that a manager of your institution has rejected your request. Please contact the manager of your institution for further information. For any other queries, contact us by replying to this email.</p>
 <p></p>
 <p>We  wish you all the best.</p>
 <p></p>
index bc33aaa..341d1f4 100644 (file)
@@ -1,6 +1,6 @@
 Dear {{first_name}} {{last_name}},
 
-You have recently registered as a user to {{theme.label}} portal. We are sorry to inform you that, a manager of your institution has rejected your request. Please contact the manager of your institution for further information. For any other queries, contact us by replying to this email.
+You have recently registered as a user to {{theme.label}} portal. We are sorry to inform you that a manager of your institution has rejected your request. Please contact the manager of your institution for further information. For any other queries, contact us by replying to this email.
 
 We wish you all the best.