Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
navbar: Adjust label for usage statistics.
Tim Abbott06f1ea657e87
diff --git a/static/js/gear_menu.js b/static/js/gear_menu.jsindex 73d1382c266..761c9db4454 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 streamshash: Settingshash: Organization settings+link: Usage statistics---link: Help centerinfo: Keyboard shortcuts@@ -31,7 +32,8 @@ hash: About Zuliplink: Desktop & mobile appslink: Integrationslink: 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.htmlindex fc6750580bb..84a9a15b590 100644--- a/templates/zerver/app/navbar.html+++ b/templates/zerver/app/navbar.html@@ -80,7 +80,7 @@<li role="presentation"><a href="/stats" target="_blank" rel="noopener noreferrer" role="menuitem"><i class="fa fa-bar-chart" aria-hidden="true"></i>- <span>{{ _('Statistics') }}</span>+ <span>{{ _('Usage statistics') }}</span></a></li>{% endif %}diff --git a/zerver/lib/markdown/help_relative_links.py b/zerver/lib/markdown/help_relative_links.pyindex 195837a4bc7..bcc16f2233f 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.pyindex 434b1f31c95..05691758809 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('<a href="/stats">Statistics</a>', str(result.content))+ self.assertIn('<a href="/stats">Usage statistics</a>', 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("<strong>Statistics</strong>", str(result.content))+ self.assertIn("<strong>Usage statistics</strong>", str(result.content))self.assertNotIn("/stats", str(result.content))def test_help_relative_links_for_stream(self) -> None: