Skip to content

A platform for community discussion. Free, open, simple.

UX: Remove count from more section links (#17747)

Alan Guo Xiang Tanf204538f7c0d
diff --git a/app/assets/javascripts/discourse/app/templates/components/sidebar/more-section-links.hbs b/app/assets/javascripts/discourse/app/templates/components/sidebar/more-section-links.hbs
index c198ae8396e..79a1163a8a0 100644
--- a/app/assets/javascripts/discourse/app/templates/components/sidebar/more-section-links.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/sidebar/more-section-links.hbs
@@ -12,7 +12,7 @@
<details class="sidebar-more-section-links-details" {{on "toggle" this.toggleSectionLinks}}>
<summary class="sidebar-more-section-links-details-summary" >
- {{i18n "sidebar.more_count" (hash count=this.sectionLinks.length)}}
+ {{i18n "sidebar.more"}}
</summary>
{{#if this.shouldDisplaySectionLinks}}
diff --git a/app/assets/javascripts/discourse/tests/acceptance/sidebar-community-section-test.js b/app/assets/javascripts/discourse/tests/acceptance/sidebar-community-section-test.js
index 283c7a92010..f71392f0ab7 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/sidebar-community-section-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/sidebar-community-section-test.js
@@ -234,7 +234,7 @@ acceptance("Sidebar - Community Section", function (needs) {
query(
".sidebar-section-community .sidebar-more-section-links-details-summary"
).textContent.trim(),
- I18n.t("sidebar.more_count", { count: 1 }),
+ I18n.t("sidebar.more"),
"displays the right count as users link is currently active"
);
@@ -281,7 +281,7 @@ acceptance("Sidebar - Community Section", function (needs) {
query(
".sidebar-section-community .sidebar-more-section-links-details-summary"
).textContent.trim(),
- I18n.t("sidebar.more_count", { count: 1 }),
+ I18n.t("sidebar.more"),
"displays the right count as groups link is currently active"
);
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 591125ae617..67ce660c75f 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -4077,7 +4077,7 @@ en:
one: "%{count} new"
other: "%{count} new"
toggle_section: "toggle section"
- more_count: "%{count} more..."
+ more: "More..."
sections:
messages:
header_link_title: "personal messages"