From 8d6e4e94bf9f894ab6059ef70debb32e7ec0192f Mon Sep 17 00:00:00 2001 From: Yasin Rahman Date: Mon, 18 May 2015 17:59:38 +0200 Subject: [PATCH] Update: status email subject capitalized and period removed at the end --- portal/actions.py | 2 +- portal/templates/user_request_denied.html | 2 +- portal/templates/user_request_denied.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/portal/actions.py b/portal/actions.py index 0375874e..7e231d2a 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -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") diff --git a/portal/templates/user_request_denied.html b/portal/templates/user_request_denied.html index 1521b68b..825bc145 100644 --- a/portal/templates/user_request_denied.html +++ b/portal/templates/user_request_denied.html @@ -2,7 +2,7 @@

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.

diff --git a/portal/templates/user_request_denied.txt b/portal/templates/user_request_denied.txt index bc33aaac..341d1f49 100644 --- a/portal/templates/user_request_denied.txt +++ b/portal/templates/user_request_denied.txt @@ -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. -- 2.43.0