mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 06:24:48 +08:00
UX: Suppress "replies" when there are many replies in the timeline
This commit is contained in:
@ -41,8 +41,9 @@ createWidget('timeline-scroller', {
|
|||||||
html(attrs) {
|
html(attrs) {
|
||||||
const { current, total, date } = attrs;
|
const { current, total, date } = attrs;
|
||||||
|
|
||||||
|
const repliesKey = (total < 1000) ? 'replies' : 'replies_short';
|
||||||
const contents = [
|
const contents = [
|
||||||
h('div.timeline-replies', I18n.t('topic.timeline.replies', { current, total }))
|
h('div.timeline-replies', I18n.t(`topic.timeline.${repliesKey}`, { current, total }))
|
||||||
];
|
];
|
||||||
|
|
||||||
if (date) {
|
if (date) {
|
||||||
|
@ -1291,6 +1291,7 @@ en:
|
|||||||
|
|
||||||
timeline:
|
timeline:
|
||||||
replies: "%{current} / %{total} replies"
|
replies: "%{current} / %{total} replies"
|
||||||
|
replies_short: "%{current} / %{total}"
|
||||||
|
|
||||||
progress:
|
progress:
|
||||||
title: topic progress
|
title: topic progress
|
||||||
|
Reference in New Issue
Block a user