mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
navbar: Adjust label for usage statistics.
This commit is contained in:
@@ -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
|
||||
---
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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"],
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user