Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
email: Rewrite followup_day2 email.
Alya Abbottaa658132944c
diff --git a/static/images/emails/day2_3.png b/static/images/emails/day2_3.pngdeleted file mode 100644index 9fab27e5d0b..00000000000Binary files a/static/images/emails/day2_3.png and /dev/null differdiff --git a/templates/zerver/emails/followup_day2.html b/templates/zerver/emails/followup_day2.htmlindex bd65fd98dc9..b1b64a05579 100644--- a/templates/zerver/emails/followup_day2.html+++ b/templates/zerver/emails/followup_day2.html@@ -5,32 +5,34 @@{% endblock %}{% block content %}-<p>{{ _("Hey,") }}</p>--<p>{{ _("I wanted to share one last thing with you: a few tips about topics, since mastering topics is a key part of being a Zulip power user.") }}</p>+<p>+ {{ _("Here are some tips for keeping your Zulip conversations organized with topics.") }}+</p>-<img src="{{ email_images_base_uri }}/day2_2.png" alt="{{ _('Examples of short topics') }}"/>+<p>+ {{ _("In Zulip, <b>streams</b> determine who gets a message. <b>Topics</b> tell you what the message is about.")}} {{ _("Using topics, you can read Zulip one conversation at a time. You'll see each message in context, no matter how many different discussions are going on.") }}+</p>-<p>{{ _("Topics are like email subject lines. The big difference, though, is that they're really short and lightweight. Two or three words will do it. Don't overthink 'em—you can always edit the message later!") }}</p>+<img src="/static/images/help/streams-and-topics.png" alt="{{ _('Streams and topics in the Zulip app') }}"/>-<ul>- <li>{{ _("Good topics: design mockup, Bug 345, acme burgers") }}</li>- <li>{% trans %}Not recommended: "What do people think of this new design mockup?", "I'm looking at Bug 345", "Is Acme Burgers open for lunch?"{% endtrans %}</li>-</ul>+<p>+ {{ _("To kick off a new conversation, just pick a stream and start a new topic. This way, the new conversation thread won't interrupt ongoing discussions. For a good topic name, think about finishing the sentence: “Hey, can we chat about…?”") }}+</p>-<img src="{{ email_images_base_uri }}/day2_3.png" alt="{{ _('Example of a topic that is too long') }}"/>+<img src="{{ email_images_base_uri }}/day2_2.png" alt="{{ _('Examples of short topics') }}"/>-<p>{{ _("Why bother with topics? Well, two reasons: it makes conversations clearer (imagine if email didn't have them!), and it lets you more efficiently catch up on what's happened while you're away—read the topics that are relevant to you, and ignore the ones that aren't!") }}</p>+<p>+ {% trans %}Don't stress about picking the perfect name for your topic. If anything is out of place, it's easy to <a href="{{ move_messages_link }}">move messages</a>, <a href="{{ rename_topics_link }}">rename topics</a>, or even <a href="{{ move_topic_to_different_stream_link }}">move a topic to a different stream</a>.{% endtrans %}+</p>-<p><a href="{{ realm_uri }}">{{ _("Take it for a spin now.") }}</a></p>+<p>+ <a href="{{ realm_uri }}">{{ _("It's time to chat.") }}</a>+</p>-<p>{{ _("Thanks,") }}<br />{{ _("Zulip") }}</p>{% endblock %}{% block manage_preferences %}-<p>- <a href="{{ realm_uri }}/#settings/notifications">{{ _("Manage email preferences") }}</a> |- <a href="{{ unsubscribe_link }}">{{ _("Unsubscribe from welcome emails") }}</a>-</p>+<p><a href="{{ unsubscribe_link }}">{% trans %}Unsubscribe from welcome emails for {{ realm_name }}{% endtrans %}</a></p>+{% endblock %}diff --git a/templates/zerver/emails/followup_day2.subject.txt b/templates/zerver/emails/followup_day2.subject.txtindex 1afe69f72c2..bbdf3db6322 100644--- a/templates/zerver/emails/followup_day2.subject.txt+++ b/templates/zerver/emails/followup_day2.subject.txt@@ -1 +1 @@-{{ _("One last thing: using topics like a pro") }}+{{ _("Keep your conversations organized with topics") }}diff --git a/templates/zerver/emails/followup_day2.txt b/templates/zerver/emails/followup_day2.txtindex 68ae53c19f9..e4642621951 100644--- a/templates/zerver/emails/followup_day2.txt+++ b/templates/zerver/emails/followup_day2.txt@@ -1,23 +1,15 @@-{{ _("Hey,") }}+{{ _("Here are some tips for keeping your Zulip conversations organized with topics.") }}-{{ _("I wanted to share one last thing with you: a few tips about topics, since mastering topics is a key part of being a Zulip power user.") }}+{{ _("In Zulip, streams determine who gets a message. Topics tell you what the message is about.") }} {{ _("Using topics, you can read Zulip one conversation at a time. You'll see each message in context, no matter how many different discussions are going on.") }}-{{ _("Topics are like email subject lines. The big difference, though, is that they're really short and lightweight. Two or three words will do it. Don't overthink 'em -- you can always edit the message later!") }}+{{ _("To kick off a new conversation, just pick a stream and start a new topic. This way, the new conversation thread won't interrupt ongoing discussions. For a good topic name, think about finishing the sentence: “Hey, can we chat about…?”") }}-* {{ _("Good topics: design mockup, Bug 345, acme burgers") }}+{% trans %}Don't stress about picking the perfect name for your topic. If anything is out of place, it's easy to move messages ({{ move_messages_link }}), rename topics ({{ rename_topics_link }}), or even move a topic to a different stream ({{ move_topic_to_different_stream_link }}).{% endtrans %}-* {% trans %}Not recommended: "What do people think of this new design mockup?", "I'm looking at Bug 345", "Is Acme Burgers open for lunch?"{% endtrans %}-{{ _("Why bother with topics? Well, two reasons: it makes conversations clearer (imagine if email didn't have them!), and it lets you more efficiently catch up on what's happened while you're away -- read the topics that are relevant to you, and ignore the ones that aren't!") }}+{{ _("It's time to chat.") }}+<{{ realm_uri }}>-{{ _("Take it for a spin now:") }}-{{ realm_uri }}--{{ _("Thanks,") }}-{{ _("Zulip") }}-----{{ _("Manage email preferences:") }}-{{ realm_uri }}/#settings/notifications--{{ _("Unsubscribe from welcome emails:") }}+{% trans %}Unsubscribe from welcome emails for {{ realm_name }}{% endtrans %}:{{ unsubscribe_link }}diff --git a/zerver/lib/email_notifications.py b/zerver/lib/email_notifications.pyindex ef991432a0c..30f8102da22 100644--- a/zerver/lib/email_notifications.py+++ b/zerver/lib/email_notifications.py@@ -813,6 +813,9 @@ def enqueue_welcome_emails(user: UserProfile, realm_creation: bool = False) -> Nfollowup_day2_context.update(unsubscribe_link=unsubscribe_link,+ move_messages_link=realm_url + "/help/move-content-to-another-topic",+ rename_topics_link=realm_url + "/help/rename-a-topic",+ move_topic_to_different_stream_link=realm_url + "/help/move-content-to-another-stream",)send_future_email(