mirror of https://github.com/zulip/zulip.git
Custom invite text for MIT invitations.
(imported from commit 21b72861e991159eb7faa74809edb8d01027c6c8)
This commit is contained in:
parent
6eda9c3314
commit
7afd3ecc81
|
@ -0,0 +1,12 @@
|
|||
Hi there,
|
||||
|
||||
{{ referrer.full_name }} ({{ referrer.email }}) wants you to join them on Zulip, an awesome web-based Zephyr client with desktop apps for Mac, Linux, and Windows, as well as native mobile apps.
|
||||
|
||||
To get started, visit the link below:
|
||||
<{{ activate_url }}>
|
||||
|
||||
Feel free to give us a shout at <support@zulip.com> if you have any questions.
|
||||
|
||||
Cheers,
|
||||
|
||||
The Zulip Team
|
|
@ -0,0 +1 @@
|
|||
{{referrer.full_name}} invited you to join Zulip
|
|
@ -1584,10 +1584,17 @@ def do_send_confirmation_email(invitee, referrer):
|
|||
`invitee` is a PreregistrationUser.
|
||||
`referrer` is a UserProfile.
|
||||
"""
|
||||
subject_template_path = 'confirmation/invite_email_subject.txt'
|
||||
body_template_path = 'confirmation/invite_email_body.txt'
|
||||
|
||||
if referrer.realm.domain == 'mit.edu':
|
||||
subject_template_path = 'confirmation/mituser_invite_email_subject.txt'
|
||||
body_template_path = 'confirmation/mituser_invite_email_body.txt'
|
||||
|
||||
Confirmation.objects.send_confirmation(
|
||||
invitee, invitee.email, additional_context={'referrer': referrer},
|
||||
subject_template_path='confirmation/invite_email_subject.txt',
|
||||
body_template_path='confirmation/invite_email_body.txt')
|
||||
subject_template_path=subject_template_path,
|
||||
body_template_path=body_template_path)
|
||||
|
||||
def build_message_list(user_profile, messages):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue