From 06f1ea657e87093ea91db9308c1aadc6239127d0 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 12 May 2021 07:56:51 -0700 Subject: [PATCH] navbar: Adjust label for usage statistics. --- static/js/gear_menu.js | 4 +++- templates/zerver/app/navbar.html | 2 +- zerver/lib/markdown/help_relative_links.py | 2 +- zerver/tests/test_docs.py | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/static/js/gear_menu.js b/static/js/gear_menu.js index 73d1382c26..761c9db445 100644 --- a/static/js/gear_menu.js +++ b/static/js/gear_menu.js @@ -21,6 +21,7 @@ Our gear menu has these choices: hash: Manage streams hash: Settings hash: Organization settings +link: Usage statistics --- link: Help center info: Keyboard shortcuts @@ -31,7 +32,8 @@ hash: About Zulip link: Desktop & mobile apps link: Integrations link: API documentation -link: Statistics +link: Sponsor Zulip +link: Plans and pricing --- hash: Invite users --- diff --git a/templates/zerver/app/navbar.html b/templates/zerver/app/navbar.html index fc6750580b..84a9a15b59 100644 --- a/templates/zerver/app/navbar.html +++ b/templates/zerver/app/navbar.html @@ -80,7 +80,7 @@
  • - {{ _('Statistics') }} + {{ _('Usage statistics') }}
  • {% endif %} diff --git a/zerver/lib/markdown/help_relative_links.py b/zerver/lib/markdown/help_relative_links.py index 195837a4bc..bcc16f2233 100644 --- a/zerver/lib/markdown/help_relative_links.py +++ b/zerver/lib/markdown/help_relative_links.py @@ -20,7 +20,7 @@ gear_info = { "settings": ["Settings", "/#settings/your-account"], "manage-organization": ["Manage organization", "/#organization/organization-profile"], "integrations": ["Integrations", "/integrations"], - "stats": ["Statistics", "/stats"], + "stats": ["Usage statistics", "/stats"], "plans": ["Plans and pricing", "/plans"], "billing": ["Billing", "/billing"], "invite": ["Invite users", "/#invite"], diff --git a/zerver/tests/test_docs.py b/zerver/tests/test_docs.py index 434b1f31c9..0569175880 100644 --- a/zerver/tests/test_docs.py +++ b/zerver/tests/test_docs.py @@ -267,13 +267,13 @@ class HelpTest(ZulipTestCase): def test_help_relative_links_for_gear(self) -> None: result = self.client_get("/help/analytics") - self.assertIn('Statistics', str(result.content)) + self.assertIn('Usage statistics', str(result.content)) self.assertEqual(result.status_code, 200) with self.settings(ROOT_DOMAIN_LANDING_PAGE=True): result = self.client_get("/help/analytics", subdomain="") self.assertEqual(result.status_code, 200) - self.assertIn("Statistics", str(result.content)) + self.assertIn("Usage statistics", str(result.content)) self.assertNotIn("/stats", str(result.content)) def test_help_relative_links_for_stream(self) -> None: