navbar: Adjust label for usage statistics.

This commit is contained in:
Tim Abbott
2021-05-12 07:56:51 -07:00
parent 02676d5400
commit 06f1ea657e
4 changed files with 7 additions and 5 deletions

View File

@@ -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
---

View File

@@ -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 %}

View File

@@ -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"],

View File

@@ -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: