mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 15:17:14 +08:00
UX: Suppress "replies" when there are many replies in the timeline
This commit is contained in:
parent
2bd59d7ca1
commit
a8251b3036
|
@ -41,8 +41,9 @@ createWidget('timeline-scroller', {
|
|||
html(attrs) {
|
||||
const { current, total, date } = attrs;
|
||||
|
||||
const repliesKey = (total < 1000) ? 'replies' : 'replies_short';
|
||||
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) {
|
||||
|
|
|
@ -1291,6 +1291,7 @@ en:
|
|||
|
||||
timeline:
|
||||
replies: "%{current} / %{total} replies"
|
||||
replies_short: "%{current} / %{total}"
|
||||
|
||||
progress:
|
||||
title: topic progress
|
||||
|
|
Loading…
Reference in New Issue
Block a user