emails: Link to organization getting started guide in followup_day1.

This commit is contained in:
Rishi Gupta 2017-08-17 20:33:06 -07:00 committed by Tim Abbott
parent 7c3f20d2ba
commit d296f29fa7
4 changed files with 14 additions and 2 deletions

View File

@ -18,6 +18,11 @@
If you're new to Zulip's threading, we recommend starting with the
desktop or browser experience, and using mobile for notifications on the
go.
{% if is_realm_admin %}
If this is your first Zulip organization, we also recommend giving
our <a href="{{ organization_setup_advice_link }}">guide for new
admins</a> a spin.
{% endif %}
</p>
<p>

View File

@ -14,7 +14,9 @@ threading, we recommend starting with the desktop or browser experience, and
using mobile for notifications on the go.
If you have any feedback, or want to see how we use Zulip for managing the
Zulip project itself, swing by https://chat.zulip.org and say hi!
Zulip project itself, swing by https://chat.zulip.org and say hi! {% if is_realm_admin %}If this is
your first Zulip organization, we also recommend checking out
{{ organization_setup_advice_link }}.{% endif %}
Cheers,
Team Zulip

View File

@ -416,7 +416,10 @@ def enqueue_welcome_emails(user_id):
unsubscribe_link = one_click_unsubscribe_link(user_profile, "welcome")
context = common_context(user_profile)
context.update({
'unsubscribe_link': unsubscribe_link
'unsubscribe_link': unsubscribe_link,
'organization_setup_advice_link':
user_profile.realm.uri + '%s/help/getting-your-organization-started-with-zulip',
'is_realm_admin': user_profile.is_realm_admin,
})
send_future_email(
"zerver/emails/followup_day1", to_user_id=user_id, from_name=from_name,

View File

@ -53,8 +53,10 @@ def email_page(request):
'server_uri': settings.SERVER_URI,
'old_email': 'old_address@acme.com',
'new_email': 'new_address@acme.com',
'is_realm_admin': True,
'activate_url': '%s/accounts/do_confirm/5348720e4af7d2e8f296cbbd04d439489917ddc0' % (settings.SERVER_URI,),
'unsubscribe_link': '%s/accounts/unsubscribe/<type>/cf88931365ef1b0f12eae8d488bbc7af3563d7f0' % (settings.SERVER_URI,),
'organization_setup_advice_link': '%s/help/getting-your-organization-started-with-zulip' % (settings.SERVER_URI,),
}
templates = [