From a9a1946819e9ea5463a085e33ddb24416a4ff7f2 Mon Sep 17 00:00:00 2001 From: David Rosa Date: Thu, 20 Jul 2023 19:10:05 -0500 Subject: [PATCH] help: Offer links to "Recent conversations" for logged in users. - Replaces Markdown include with `{relative|message|recent}`. --- help/include/open-recent-conversations.md | 1 - help/include/reading-topics.md | 2 +- help/include/recent-conversations.md | 2 +- help/marking-messages-as-read.md | 2 +- zerver/lib/markdown/help_relative_links.py | 6 ++++++ 5 files changed, 9 insertions(+), 4 deletions(-) delete mode 100644 help/include/open-recent-conversations.md diff --git a/help/include/open-recent-conversations.md b/help/include/open-recent-conversations.md deleted file mode 100644 index 692e9afd77..0000000000 --- a/help/include/open-recent-conversations.md +++ /dev/null @@ -1 +0,0 @@ -1. Click **Recent conversations** in the left sidebar. diff --git a/help/include/reading-topics.md b/help/include/reading-topics.md index e2fe22bf74..5cea959e61 100644 --- a/help/include/reading-topics.md +++ b/help/include/reading-topics.md @@ -2,7 +2,7 @@ {tab|via-recent-conversations} -{!open-recent-conversations.md!} +{relative|message|recent} 1. Click on the name of a topic in the **Topic** column. diff --git a/help/include/recent-conversations.md b/help/include/recent-conversations.md index b8b48cdd93..f33babd4f2 100644 --- a/help/include/recent-conversations.md +++ b/help/include/recent-conversations.md @@ -6,7 +6,7 @@ for catching up on messages sent while you were away. {start_tabs} -{!open-recent-conversations.md!} +{relative|message|recent} 1. The filters at the top help you quickly find relevant conversations. For example, select **Participated** to narrow to the topics you diff --git a/help/marking-messages-as-read.md b/help/marking-messages-as-read.md index e5e8500e1b..8926b3865b 100644 --- a/help/marking-messages-as-read.md +++ b/help/marking-messages-as-read.md @@ -73,7 +73,7 @@ stream or topic as read**. {tab|via-recent-conversations} -{!open-recent-conversations.md!} +{relative|message|recent} 1. Click on an unread messages counter in the **Topic** column to mark all messages in that topic as read. diff --git a/zerver/lib/markdown/help_relative_links.py b/zerver/lib/markdown/help_relative_links.py index 6109c89ad1..72d28c1db5 100644 --- a/zerver/lib/markdown/help_relative_links.py +++ b/zerver/lib/markdown/help_relative_links.py @@ -75,9 +75,15 @@ scheduled_instructions = """ sidebar. If you do not see this link, you have no scheduled messages. """ +recent_instructions = """ +1. Click on **Recent conversations** in the left + sidebar. +""" + message_info = { "drafts": ["Drafts", "/#drafts", draft_instructions], "scheduled": ["Scheduled messages", "/#scheduled", scheduled_instructions], + "recent": ["Recent conversations", "/#recent", recent_instructions], }