mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
UX: Also use timeline date format on the bottom of the timeline
This commit is contained in:
parent
e5ad297ef0
commit
288b407bd1
@ -163,7 +163,7 @@ function relativeAgeTiny(date, ageOpts) {
|
||||
formatted = t("x_days", {count: Math.round(distanceInMinutes / 1440.0)});
|
||||
break;
|
||||
default:
|
||||
formatted = smartShortDate(date);
|
||||
formatted = (ageOpts.defaultFormat || smartShortDate)(date);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -238,7 +238,7 @@ export default createWidget('topic-timeline', {
|
||||
this.attach('link', {
|
||||
className: 'now-date',
|
||||
icon: 'dot-circle-o',
|
||||
rawLabel: relativeAge(new Date(topic.last_posted_at), { addAgo: true }),
|
||||
rawLabel: relativeAge(new Date(topic.last_posted_at), { addAgo: true, defaultFormat: timelineDate }),
|
||||
action: 'jumpBottom'
|
||||
}) ];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user