onboarding.py: Add link to getting-your-organization-started-with-zulip.

Also has a few minor updates to the rest of the text.
This commit is contained in:
Rishi Gupta 2017-08-17 18:44:29 -07:00 committed by Tim Abbott
parent d296f29fa7
commit 4e7d87b676
1 changed files with 12 additions and 4 deletions

View File

@ -13,15 +13,23 @@ from typing import Any, Dict, List, Mapping, Text
def send_initial_pms(user):
# type: (UserProfile) -> None
organization_setup_text = ""
if user.is_realm_admin:
organization_setup_text = "* [Read the guide](%s) for getting your organization started with Zulip\n" \
% (user.realm.uri + "/help/getting-your-organization-started-with-zulip",)
content = (
"Hello, and welcome to Zulip!\n\nThis is a private message from me, Welcome Bot. "
"Here are some tips to get you started:\n"
"* Download our [Desktop and mobile apps](/apps)\n"
"* Customize your account and notifications on your [Settings page](#settings).\n"
"* Check out our !modal_link(#keyboard-shortcuts, Keyboard shortcuts)\n\n"
"The most important shortcut is `r` or `Enter` to reply.\n\n"
"* Customize your account and notifications on your [Settings page](#settings)\n"
"* Type `?` to check out Zulip's keyboard shortcuts\n"
"%s"
"\n"
"The most important shortcut is `r` to reply.\n\n"
"Practice sending a few messages by replying to this conversation. If you're not into "
"keyboards, that's okay too; clicking anywhere on this message will also do the trick!")
"keyboards, that's okay too; clicking anywhere on this message will also do the trick!") \
% (organization_setup_text,)
internal_send_private_message(user.realm, get_system_bot(settings.WELCOME_BOT),
user, content)