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

Less is more...
This commit is contained in:
Alan Guo Xiang Tan 2022-08-02 11:20:55 +08:00 committed by GitHub
parent 8df2756bba
commit f204538f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@
<details class="sidebar-more-section-links-details" {{on "toggle" this.toggleSectionLinks}}> <details class="sidebar-more-section-links-details" {{on "toggle" this.toggleSectionLinks}}>
<summary class="sidebar-more-section-links-details-summary" > <summary class="sidebar-more-section-links-details-summary" >
{{i18n "sidebar.more_count" (hash count=this.sectionLinks.length)}} {{i18n "sidebar.more"}}
</summary> </summary>
{{#if this.shouldDisplaySectionLinks}} {{#if this.shouldDisplaySectionLinks}}

View File

@ -234,7 +234,7 @@ acceptance("Sidebar - Community Section", function (needs) {
query( query(
".sidebar-section-community .sidebar-more-section-links-details-summary" ".sidebar-section-community .sidebar-more-section-links-details-summary"
).textContent.trim(), ).textContent.trim(),
I18n.t("sidebar.more_count", { count: 1 }), I18n.t("sidebar.more"),
"displays the right count as users link is currently active" "displays the right count as users link is currently active"
); );
@ -281,7 +281,7 @@ acceptance("Sidebar - Community Section", function (needs) {
query( query(
".sidebar-section-community .sidebar-more-section-links-details-summary" ".sidebar-section-community .sidebar-more-section-links-details-summary"
).textContent.trim(), ).textContent.trim(),
I18n.t("sidebar.more_count", { count: 1 }), I18n.t("sidebar.more"),
"displays the right count as groups link is currently active" "displays the right count as groups link is currently active"
); );

View File

@ -4077,7 +4077,7 @@ en:
one: "%{count} new" one: "%{count} new"
other: "%{count} new" other: "%{count} new"
toggle_section: "toggle section" toggle_section: "toggle section"
more_count: "%{count} more..." more: "More..."
sections: sections:
messages: messages:
header_link_title: "personal messages" header_link_title: "personal messages"