UX: Suppress date on on timeline for previous years

This commit is contained in:
Robin Ward 2016-05-24 15:04:06 -04:00
parent b3e7c78be5
commit d8d1c7013e
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
2 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,7 @@ createWidget('timeline-scroller', {
if (date) { if (date) {
const format = (date.getFullYear() === new Date().getFullYear()) ? const format = (date.getFullYear() === new Date().getFullYear()) ?
'long_no_year_no_time' : 'long_no_year_no_time' :
'long_with_year_no_time'; 'timeline_diff_year';
contents.push(h('div.timeline-ago', moment(date).format(I18n.t(`dates.${format}`)))); contents.push(h('div.timeline-ago', moment(date).format(I18n.t(`dates.${format}`))));
} }

View File

@ -37,6 +37,7 @@ en:
dates: dates:
time: "h:mm a" time: "h:mm a"
timeline_start: "MMMM YYYY" timeline_start: "MMMM YYYY"
timeline_diff_year: "MMM YYYY"
long_no_year: "MMM D h:mm a" long_no_year: "MMM D h:mm a"
long_no_year_no_time: "MMM D" long_no_year_no_time: "MMM D"
full_no_year_no_time: "MMMM Do" full_no_year_no_time: "MMMM Do"